Summary
Sometimes, the SOP application may fail to install its web application with null pointer exception. This may be caused by the use of the sample code. Please read this document for details, and correct the application if necessary.
Symptom
At an unexpected timing, the SOP application installs the web application, and it fails with NullPointerException.
Cause
The SOP application may be trying to install the web application when it should not. The SOP application may starts to install the web application when it receives “web application installation failure” intent ( RESULT=false, ERROR_CODE=3(BUSY) ) if the web application installation code is same as the SmartSDK web application sample code.
The sample code didn’t check if the failure intent is for itself or for other SOP application, and it starts to install the web application whenever any web application installation fails. Proceeding with the unintended installation fails with a null pointer exception.
Resolution
Please fix the web application installation code as shown below. The same fix will be included in future SmartSDK release (planned: March 2017).
Code fix details
Portion of WebAppInstallerSample jp.co.ricoh.ssdk.sample.servlet.SystemReceiver #onReceive(Context, Intent)