summaryrefslogtreecommitdiff
path: root/apps/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'apps/hosted')
-rw-r--r--apps/hosted/notification.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/hosted/notification.c b/apps/hosted/notification.c
index fa8c286808..4dd1bece3d 100644
--- a/apps/hosted/notification.c
+++ b/apps/hosted/notification.c
@@ -83,6 +83,11 @@ void notification_init(void)
83 "fg_runner", "Lorg/rockbox/Helper/RunForegroundManager;"); 83 "fg_runner", "Lorg/rockbox/Helper/RunForegroundManager;");
84 NotificationManager_instance = e->GetObjectField(env_ptr, 84 NotificationManager_instance = e->GetObjectField(env_ptr,
85 RockboxService_instance, nNM); 85 RockboxService_instance, nNM);
86 if (NotificationManager_instance == NULL)
87 {
88 DEBUGF("Failed to get RunForegroundManager instance. Performance will be bad");
89 return;
90 }
86 91
87 jclass class = e->GetObjectClass(env_ptr, NotificationManager_instance); 92 jclass class = e->GetObjectClass(env_ptr, NotificationManager_instance);
88 updateNotification = e->GetMethodID(env_ptr, class, "updateNotification", 93 updateNotification = e->GetMethodID(env_ptr, class, "updateNotification",