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:
parent
3256f5ec9c
commit
f82422647d
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue