I have an app i haven't updated since January 2018 and now I need to update some stuff on it but i started getting strange null pointer exception. I know a lot has change and may be hard for me to follow up change logs but was hoping to get an help real fast as the update is as sensitive to me.
/Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java:1268: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cmp.setModel(new com.codename1.ui.list.DefaultListModel(xxx));
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
Note: /Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
Compiling 1 source file to /Users/olyjosh/Desktop/OneThousandBizIdea/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java:1268: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cmp.setModel(new com.codename1.ui.list.DefaultListModel(xxx));
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
Note: /Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/olyjosh/Desktop/OneThousandBizIdea/src/userclasses/StateMachine.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 warnings
compile:
run:
Retina Scale: 1.0
java.lang.NullPointerException
at com.codename1.ui.Display.getProperty(Display.java:3178)
at com.codename1.ui.util.UIBuilder.<init>(UIBuilder.java:233)
at generated.StateMachineBase.<init>(StateMachineBase.java:30)
at generated.StateMachineBase.<init>(StateMachineBase.java:118)
at userclasses.StateMachine.<init>(StateMachine.java:47)
at com.sunkanmivaughan.bizdir.BizDirFund.start(BizDirFund.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.codename1.impl.javase.Executor$3$1.run(Executor.java:256)
at com.codename1.ui.Display.processSerialCalls(Display.java:1298)
at com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
Java Result: 1