Skip to content

Commit

Permalink
Merge pull request #94 from Tavernari/patch-1
Browse files Browse the repository at this point in the history
Crash on Android when value is null pointer
  • Loading branch information
tlenclos authored May 7, 2017
2 parents df7baf5 + 58bee48 commit ea7679e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/audioStreaming/Signal.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public void playerMetadata(final String key, final String value) {
metaIntent.putExtra("value", value);
sendBroadcast(metaIntent);

if (key != null && key.equals("StreamTitle") && remoteViews != null) {
if (key != null && key.equals("StreamTitle") && remoteViews != null && value != null) {
remoteViews.setTextViewText(R.id.song_name_notification, value);
notifyBuilder.setContent(remoteViews);
notifyManager.notify(NOTIFY_ME_ID, notifyBuilder.build());
Expand Down

0 comments on commit ea7679e

Please sign in to comment.