Skip to content

Commit 4718cd0

Browse files
committed
checks if activity or service sections are null before doing anything else
1 parent 38db054 commit 4718cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mode/src/processing/mode/android/Manifest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ protected void load(boolean forceNew) {
334334

335335
XML activity = app.getChild("activity");
336336
XML service = app.getChild("service");
337-
if (activity.getString("android:name").equals(".MainActivity")) {
337+
if (activity != null && activity.getString("android:name").equals(".MainActivity")) {
338338
addExportedAttrib(activity);
339339
if (!forceNew) save();
340340
}
341-
if (service.getString("android:name").equals(".MainService")) {
341+
if (service != null && service.getString("android:name").equals(".MainService")) {
342342
addExportedAttrib(service);
343343
if (!forceNew) save();
344344
}

0 commit comments

Comments
 (0)