Subject: NPE in Sapphire code while switching from Source to Design tab & back |
Author: Dmitry Karpenko |
Date: Tue, 20 January 2015 10:56 |
Hi Guys,
I've faced a following problem:
1. Open Sapphire editor. If it opened on the Design tab, switch it to the Source tab, close & reopen - editor should be on the Source tab initially
2. Switch to the Design Tab
3. Switch back to the Source tab
After that, NPE could be seen in the Error Log:
java.lang.NullPointerException
at org.eclipse.sapphire.ui.internal.SapphireEditorContentOutline.refresh(SapphireEditorContentOutline.java:188)
at org.eclipse.sapphire.ui.SapphireEditor.pageChange(SapphireEditor.java:570)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:294)
It seems that refresh() code tries to get site for currentPage, but this site isn't there while trying described scenario. Am I doing smth wrong?
Best Regards, Dmitry
![]() |
Attachment: log.txt
(Size: 3.26KB, Downloaded 0 times) |
|
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]
|