Issue Type: Bug Bug
Affects Versions: UDIG 1.3.3
Assignee: Unassigned
Components: tools and editing
Created: 17/Dec/12 9:02 AM
Description:

The extension point definition of net.refractions.udig.render.Tool defines the category name as #implied (see below).
However, if an extension defines a category without a name, a NPE is thrown in MapToolPaletteFactory row 173, where label is NULL (obtained from category.getName() in row 81):
int cut = label.indexOf("&");

<!ATTLIST category
id CDATA #REQUIRED
commandId CDATA #IMPLIED
icon CDATA #IMPLIED
name CDATA #IMPLIED
selectionProvider CDATA #IMPLIED
applicabilityId CDATA #IMPLIED
>

Stacktrace:
!ENTRY org.eclipse.ui 4 0 2012-12-17 14:59:37.824
!MESSAGE Unable to create editor ID net.refractions.udig.project.ui.mapEditor: An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at net.refractions.udig.project.ui.internal.MapToolPaletteFactory.shortcut(MapToolPaletteFactory.java:173)
at net.refractions.udig.project.ui.internal.MapToolPaletteFactory.createPalette(MapToolPaletteFactory.java:81)
at net.refractions.udig.project.ui.internal.MapEditorWithPalette.getPaletteRoot(MapEditorWithPalette.java:208)
at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.setEditDomain(GraphicalEditorWithFlyoutPalette.java:145)
at net.refractions.udig.project.ui.internal.MapEditorWithPalette.createPartControl(MapEditorWithPalette.java:973)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
......

Environment: Tested with uDig 1.3.3 SDK
Project: uDIG
Priority: Major Major
Reporter: Matthias Lendholt
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to