Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3b30c76 authored by Steve Kondik's avatar Steve Kondik
Browse files

Fix an NPE in InstalledAppDetails.

It's possible to end up with empty packages that the PM still thinks is
installed. Clicking on one of these would cause an NPE in the a2sd code.
parent 3fbd986d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
    }
    
    private boolean isPackageOnExt() {
    	if (mAppInfo.sourceDir.startsWith(Environment.getSdExtDirectory().toString())) {
    	if (mAppInfo.sourceDir != null && mAppInfo.sourceDir.startsWith(Environment.getSdExtDirectory().toString())) {
    		return true;
    	} else {
    		return false;