When I tried the 1.5 version of the Demo, I found that there was a null pointer exception and a crash error:
Process: com.myscript.iink.demo, PID: 14799 java.lang.NullPointerException: Attempt to get length of null array at com.myscript.iink.uireferenceimplementation.SmartGuideView.computeModificationOfWords(SmartGuideView.java:626) at com.myscript.iink.uireferenceimplementation.SmartGuideView.update(SmartGuideView.java:531) at com.myscript.iink.uireferenceimplementation.SmartGuideView.contentChanged(SmartGuideView.java:378) at com.myscript.iink.Editor$3.accept(Editor.java:156) at com.myscript.iink.Editor$3.accept(Editor.java:152) at com.myscript.iink.ListenerList.forEach(ListenerList.java:53) at com.myscript.iink.Editor.contentChanged(Editor.java:151)
Best Answer
G
Gwenaelle @MyScript
said
almost 3 years ago
In addition, in order to avoid a crash in such a situation, you can add a check on oldWords in the SmartGuideView class:
Hedy Jiang
When I tried the 1.5 version of the Demo, I found that there was a null pointer exception and a crash error:
Process: com.myscript.iink.demo, PID: 14799
java.lang.NullPointerException: Attempt to get length of null array
at com.myscript.iink.uireferenceimplementation.SmartGuideView.computeModificationOfWords(SmartGuideView.java:626)
at com.myscript.iink.uireferenceimplementation.SmartGuideView.update(SmartGuideView.java:531)
at com.myscript.iink.uireferenceimplementation.SmartGuideView.contentChanged(SmartGuideView.java:378)
at com.myscript.iink.Editor$3.accept(Editor.java:156)
at com.myscript.iink.Editor$3.accept(Editor.java:152)
at com.myscript.iink.ListenerList.forEach(ListenerList.java:53)
at com.myscript.iink.Editor.contentChanged(Editor.java:151)
In addition, in order to avoid a crash in such a situation, you can add a check on oldWords in the SmartGuideView class:
Best regards,
Gwenaëlle
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstGwenaelle @MyScript
Dear Hedy,
Thank you for contacting us.
I have not been able to reproduce your issue with the Demo.
Have you identified a scenario to reproduce the issue?
Which part and configuration are you using?
Best regards,
Gwenaëlle
Gwenaelle @MyScript
In addition, in order to avoid a crash in such a situation, you can add a check on oldWords in the SmartGuideView class:
Best regards,
Gwenaëlle