Skip to content

Commit 2b44ba8

Browse files
author
Brandyn A. White
committed
Fix case where there are no gists
Signed-off-by: Brandyn A. White <[email protected]>
1 parent 23269ae commit 2b44ba8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/WearScript/src/main/java/com/dappervision/wearscript/models/InstalledScripts.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ private List<String> GistList() {
2525
File extStorageDir = new File(WEARSCRIPT_PATH);
2626
Log.i(TAG, "WSFiles: the directory: " + extStorageDir);
2727
String[] flArray = extStorageDir.list();
28+
if (flArray == null)
29+
return new ArrayList<String>();
2830
return Arrays.asList(flArray);
2931
}
3032

0 commit comments

Comments
 (0)