Skip to content

Commit 81823a6

Browse files
committed
Fix AppArg snippet property default value
1 parent dbf07bb commit 81823a6

File tree

1 file changed

+1
-1
lines changed
  • docs/demos/common/src/main/java/com/codenameone/developerguide/advancedtopics

1 file changed

+1
-1
lines changed

docs/demos/common/src/main/java/com/codenameone/developerguide/advancedtopics/AppArgSnippet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// tag::appArg[]
66
class AppArgSnippet {
77
public void readArgument() {
8-
String arg = Display.getInstance().getProperty("AppArg");
8+
String arg = Display.getInstance().getProperty("AppArg", null);
99
}
1010
}
1111
// end::appArg[]

0 commit comments

Comments
 (0)