prevent null pointer exception

This commit is contained in:
Milos Kozak 2017-01-29 18:48:42 +01:00
parent ed29302547
commit 3a17ed19c4

View file

@ -104,6 +104,7 @@ public class PersistentNotificationPlugin implements PluginBase{
String line1 = ctx.getString(R.string.noprofile); String line1 = ctx.getString(R.string.noprofile);
if (MainApp.getConfigBuilder().getActiveProfile() == null) return;
NSProfile profile = MainApp.getConfigBuilder().getActiveProfile().getProfile(); NSProfile profile = MainApp.getConfigBuilder().getActiveProfile().getProfile();