fix potential crash when loading tasks fragment

This commit is contained in:
Phillip Thelen 2015-12-04 16:36:05 +01:00
parent 1fcce1c526
commit 40dcbe44e6

View file

@ -322,9 +322,9 @@ public class TasksFragment extends BaseFragment implements TaskScoringCallback.O
}
});
tabLayout.setupWithViewPager(viewPager);
if (tabLayout != null) {
tabLayout.setupWithViewPager(viewPager);
}
}
public void updateUserData(HabitRPGUser user) {