DFTinc / onyx-android-demo

Demo app for developers that demonstrates the features of the current ONYX SDK
1 stars 3 forks source link

Crash on 'startOnyx' #3

Closed eolszewski closed 6 years ago

eolszewski commented 6 years ago

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.dft.onyxcamera.config.Onyx.create(android.app.Activity)' on a null object reference at com.dft.onyx50helloworld.OnyxActivity.onResume(OnyxActivity.java:23)

I'm running this in a simulator - is this a problem?

eolszewski commented 6 years ago

Yeah, seems like configuredOnyx is not being instantiated.

There's also the error failed to make and chown /acct/uid_10053: Read-only file system

Not sure what is being created there, but that is the only other error.

eolszewski commented 6 years ago

Likely a problem with the simulator's SD, I'll post back with a solution.

eolszewski commented 6 years ago

Tried this on on a hard device and still running into the same crash (sans the read-only file system).

mjwheatley commented 6 years ago

I believe this was caused by changing startOnyxButton.setEnabled(false); from false to true therefore allowing a call to try and launch Onyx before it has been configured.