Skip to content

Commit 652ede3

Browse files
committed
Merge pull request #281 from ParsePlatform/grantland.npe
Fix NPE
2 parents dfd52ab + 21fb421 commit 652ede3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/src/main/java/com/parse/ParseKeyValueCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565

6666
private static File getKeyValueCacheDir() {
67-
if (directory == null || !directory.exists()) {
67+
if (directory != null && !directory.exists()) {
6868
directory.mkdir();
6969
}
7070
return directory;

0 commit comments

Comments
 (0)