Issue Details (XML | Word | Printable)

Key: IDE-796
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Christian Dupuis
Reporter: Eugene Lucash
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring IDE

NPE in context assist of values in custom xml tags (a new one)

Created: 26/Jan/08 10:45 AM   Updated: 29/Jan/08 12:35 AM
Component/s: beans.ui.editor
Affects Version/s: 2.0.3
Fix Version/s: 2.0.3

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive mylyn-context.zip (1 kB)

Environment: Spring IDE nighly 2.0.3.v200801242001


 Description  « Hide
NullPointerException in xml context assist of of Values of attributes custom namespace tags (without spring tooling annotations yet).
Рrobably fails when expects some schema tooling info but not founds it.

---- Example ----
<ui:view id="progress" modal-for=" !!!!!!- completion of value fails
<ui:panel layout="border: 0, 0">
</ui:panel>
</ui:view>

---- Trace ------------

java.lang.NullPointerException
at org.springframework.ide.eclipse.beans.ui.editor.util.ToolAnnotationUtils.getApplicationInformationElements(ToolAnnotationUtils.java:92)
at org.springframework.ide.eclipse.beans.ui.editor.hyperlink.DelegatingHyperlinkDetector.detectAnnotationBasedHyperlinks(DelegatingHyperlinkDetector.java:69)
at org.springframework.ide.eclipse.beans.ui.editor.hyperlink.DelegatingHyperlinkDetector.detectHyperlinks(DelegatingHyperlinkDetector.java:52)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:458)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:198)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)



 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Eugene Lucash added a comment - 26/Jan/08 11:15 AM
Exception Alert somehow triggered by CTRL+Space keys (maybe related CRTL trigger hover hyperlinking).
When calling from menu Edit->Context Assist it does nothing.
But for attribute values enumerated in xml schema proposals did not come up anyway.
Spring XML editor expected to fallback to schema based completion if tooling info not availible.
If I disable Spring IDE feature, xml schema completion works as expected