[
{
"type": "light",
"message0": "%1 Light",
"args0": [
{
"type": "field_image",
"src": "images/led.png",
"width": 30,
"height": 30,
"alt": "*"
}
]
]05-20 19:44:06.342 31683-31683/com E/AndroidRuntime: FATAL EXCEPTION: main
Process: com, PID: 31683
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.blockly.model.FieldImage.getWidth()' on a null object reference
at com.google.blockly.android.ui.fieldview.BasicFieldImageView.updateViewSize(BasicFieldImageView.java:174)
at com.google.blockly.android.ui.fieldview.BasicFieldImageView$2.onPostExecute(BasicFieldImageView.java:141)
at com.google.blockly.android.ui.fieldview.BasicFieldImageView$2.onPostExecute(BasicFieldImageView.java:117)
at android.os.AsyncTask.finish(AsyncTask.java:651)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
protected void onCreate(Bundle savedInstanceState){
loadWorkspaceFromAppDir(fileName);
}
protected void onCreate(Bundle savedInstanceState){
if(savedInstanceState == null){
loadWorkspaceFromAppDir(fileName);
}
}
--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/lC91XADUiI4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.