Skip to content

Commit

Permalink
NPE fix. unknown to reproduce (31c3 play store report)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmobil committed Dec 29, 2014
1 parent 679aad5 commit 0a69255
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {

TextView t;
t = (TextView) view.findViewById(R.id.date);
if (lecture.dateUTC > 0) {
if ((lecture != null) && (lecture.dateUTC > 0)) {
DateFormat df = SimpleDateFormat
.getDateTimeInstance(SimpleDateFormat.SHORT, SimpleDateFormat.SHORT);
t.setText(df.format(new Date(lecture.dateUTC)) + " - " + room);
Expand Down

0 comments on commit 0a69255

Please sign in to comment.