Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bug 634530 - Fennec fails to startup on Droid Pro when the device is …

…connected to PC via USB r=mbrubeck a=blocking-fennec CLOSED TREE

--HG--
branch : GECKO20b12pre_20110216_RELBRANCH
  • Loading branch information...
commit 6f42709ab59d1d76e12433610dea2ae7f50ddafb 1 parent 43c4435
authored February 16, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  embedding/android/GeckoAppShell.java
4  embedding/android/GeckoAppShell.java
@@ -216,7 +216,7 @@ public static void loadGeckoLibs(String apkName) {
216 216
             if (Build.VERSION.SDK_INT >= 8) {
217 217
                 File extHome =  geckoApp.getExternalFilesDir(null);
218 218
                 File extProf = new File (extHome, "mozilla");
219  
-                if (extHome.exists())
  219
+                if (extHome != null && extProf != null && extProf.exists())
220 220
                     moveDir(extProf, profileDir);
221 221
             }
222 222
         } else {
@@ -231,7 +231,7 @@ public static void loadGeckoLibs(String apkName) {
231 231
 
232 232
             File intHome =  geckoApp.getFilesDir();
233 233
             File intProf = new File(intHome, "mozilla");
234  
-            if (intHome.exists())
  234
+            if (intHome != null && intProf != null && intProf.exists())
235 235
                 moveDir(intProf, profileDir);
236 236
         }
237 237
         GeckoAppShell.putenv("HOME=" + homeDir);

0 notes on commit 6f42709

Please sign in to comment.
Something went wrong with that request. Please try again.