Skip to content

Commit c81edcb

Browse files
fix: fix Android NULL column issue (#79)
Co-authored-by: Bernd von FIntel <[email protected]> Fixes #43
1 parent 041b3d7 commit c81edcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/SQLitePlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private static String[] jsonArrayToStringArray(JSONArray jsonArray) throws JSONE
309309
int len = jsonArray.length();
310310
String[] res = new String[len];
311311
for (int i = 0; i < len; i++) {
312-
res[i] = jsonArray.getString(i);
312+
res[i] = !jsonArray.isNull(i) ? jsonArray.getString(i) : null;
313313
}
314314
return res;
315315
}

0 commit comments

Comments
 (0)