Skip to content

Commit

Permalink
Merge pull request #39 from tfrascari/FixNPEAndroidBlinkUpPlugin
Browse files Browse the repository at this point in the history
Fix NPE in the android BlinkUpPlugin
  • Loading branch information
Larochelle committed Aug 11, 2016
2 parents 308eab6 + 232fd8f commit 102d789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/BlinkUpPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void onError(String s) {
planId = PreferencesHelper.getPlanId(activity);
}

if(planId != null || !planId.isEmpty()) {
if(planId != null && !planId.isEmpty()) {
controller.setPlanID(planId);
}

Expand Down

0 comments on commit 102d789

Please sign in to comment.