Skip to content

Commit

Permalink
Fixed null pointer exception issue in PeekLayoutFractory#createConten…
Browse files Browse the repository at this point in the history
…tLayout().
  • Loading branch information
lzanita09 committed Jun 9, 2014
1 parent 4aa1e53 commit 461d8b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static View createContentLayout(Context context, StatusBarNotification n

String content = NotificationHelper.getNotificationContent(n);
String title = NotificationHelper.getNotificationTitle(n);
if (!content.startsWith(NotificationHelper.getNotificationTitle(n))) {
if (content != null && !content.startsWith(NotificationHelper.getNotificationTitle(n))) {
contentTitleView.setText(title);
} else {
contentTextView.setVisibility(View.GONE);
Expand Down

0 comments on commit 461d8b7

Please sign in to comment.