Skip to content

Commit 22bc268

Browse files
committed
handle null sdk target
1 parent d5a41ce commit 22bc268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processing/mode/android/AndroidBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class AndroidBuild extends JavaBuild {
100100
static public String target_platform;
101101
static {
102102
target_sdk = Preferences.get("android.sdk.target");
103-
if (PApplet.parseInt(target_sdk) < 25) { // Must be Nougat (7.1.1) or higher
103+
if (target_sdk == null || PApplet.parseInt(target_sdk) < 25) { // Must be Nougat (7.1.1) or higher
104104
target_sdk = "25";
105105
Preferences.set("android.sdk.target", target_sdk);
106106
}

0 commit comments

Comments
 (0)