Skip to content

Commit 9dcb7a0

Browse files
committed
fix nullpointerexception
1 parent e385657 commit 9dcb7a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/CameraLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private String getTempDirectoryPath() {
227227
cache = cordova.getActivity().getExternalCacheDir();
228228
}
229229
// Use internal storage
230-
else {
230+
if (cache == null) {
231231
cache = cordova.getActivity().getCacheDir();
232232
}
233233

0 commit comments

Comments
 (0)