Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
bug 634530 - Fennec fails to startup on Droid Pro when the device is …
Browse files Browse the repository at this point in the history
…connected to PC via USB r=mbrubeck a=blocking-fennec CLOSED TREE

--HG--
branch : GECKO20b12pre_20110216_RELBRANCH
  • Loading branch information
bslassey committed Feb 16, 2011
1 parent 43c4435 commit 6f42709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedding/android/GeckoAppShell.java
Expand Up @@ -216,7 +216,7 @@ public static void loadGeckoLibs(String apkName) {
if (Build.VERSION.SDK_INT >= 8) {
File extHome = geckoApp.getExternalFilesDir(null);
File extProf = new File (extHome, "mozilla");
if (extHome.exists())
if (extHome != null && extProf != null && extProf.exists())
moveDir(extProf, profileDir);
}
} else {
Expand All @@ -231,7 +231,7 @@ public static void loadGeckoLibs(String apkName) {

File intHome = geckoApp.getFilesDir();
File intProf = new File(intHome, "mozilla");
if (intHome.exists())
if (intHome != null && intProf != null && intProf.exists())
moveDir(intProf, profileDir);
}
GeckoAppShell.putenv("HOME=" + homeDir);
Expand Down

0 comments on commit 6f42709

Please sign in to comment.