1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

fixed possible NPE

This commit is contained in:
Nikolay Pultsin 2011-01-30 21:02:09 +00:00
parent 3256f5ec9c
commit f82422647d

View file

@ -204,7 +204,10 @@ public final class FBReader extends ZLAndroidActivity {
@Override
public void onResume() {
super.onResume();
sendBroadcast(new Intent(getApplicationContext(), KillerCallback.class));
final Context context = getApplicationContext();
if (context != null) {
sendBroadcast(new Intent(context, KillerCallback.class));
}
ControlButtonPanel.restoreVisibilities();
}