- edited description
Nullpointer exception when adding associations to classes with no name.
Issue #72
resolved
Stack trace:
Exception in thread "Animation Thread" java.lang.NullPointerException
at ca.mcgill.sel.ram.controller.StructuralViewController.toLowerCaseFirst(StructuralViewController.java:246)
at ca.mcgill.sel.ram.controller.StructuralViewController.createAssociation(StructuralViewController.java:183)
at ca.mcgill.ram.ui.handler.impl.StructuralViewHandler.handleDoubleTapOnClass(StructuralViewHandler.java:230)
at ca.mcgill.ram.ui.handler.impl.ClassifierViewHandler.processTapEvent(ClassifierViewHandler.java:142)
at ca.mcgill.ram.ui.handler.BaseHandler.processGestureEvent(BaseHandler.java:50)
at ca.mcgill.ram.ui.components.ContainerComponent.processGestureEvent(ContainerComponent.java:160)
at org.mt4j.input.GestureEventSupport.fire(GestureEventSupport.java:184)
at org.mt4j.input.GestureEventSupport.fireGestureEvt(GestureEventSupport.java:169)
at org.mt4j.components.MTComponent.processGestureEvent(MTComponent.java:3033)
at org.mt4j.input.inputProcessors.componentProcessors.AbstractComponentProcessor.fireGestureEvent(AbstractComponentProcessor.java:236)
at org.mt4j.input.inputProcessors.componentProcessors.AbstractCursorProcessor.fireGestureEvent(AbstractCursorProcessor.java:169)
at org.mt4j.input.inputProcessors.componentProcessors.tapProcessor.TapProcessor.endGesture(TapProcessor.java:208)
at org.mt4j.input.inputProcessors.componentProcessors.tapProcessor.TapProcessor.cursorEnded(TapProcessor.java:172)
at org.mt4j.input.inputProcessors.componentProcessors.AbstractCursorProcessor.processInputEvtImpl(AbstractCursorProcessor.java:143)
at org.mt4j.input.inputProcessors.componentProcessors.AbstractComponentProcessor.processInputEvent(AbstractComponentProcessor.java:87)
at org.mt4j.input.ComponentInputProcessorSupport.processInputEvent(ComponentInputProcessorSupport.java:76)
at org.mt4j.components.MTComponent.dispatchInputEvent(MTComponent.java:2853)
at org.mt4j.components.MTComponent.processInputEvent(MTComponent.java:2983)
at org.mt4j.components.MTCanvas.processInputEvent(MTCanvas.java:449)
at org.mt4j.input.inputProcessors.globalProcessors.AbstractGlobalInputProcessor.fireInputEvent(AbstractGlobalInputProcessor.java:138)
at org.mt4j.input.inputProcessors.globalProcessors.InputRetargeter.processInputEvtImpl(InputRetargeter.java:91)
at org.mt4j.input.inputProcessors.globalProcessors.AbstractGlobalInputProcessor.processInputEvent(AbstractGlobalInputProcessor.java:67)
at org.mt4j.input.inputSources.AbstractInputSource.fireInputEvent(AbstractInputSource.java:208)
at org.mt4j.input.inputSources.AbstractInputSource.flushEvents(AbstractInputSource.java:183)
at org.mt4j.input.inputSources.AbstractInputSource.pre(AbstractInputSource.java:126)
at org.mt4j.input.inputSources.AbstractInputSource.processAction(AbstractInputSource.java:86)
at org.mt4j.AbstractMTApplication.runApplication(AbstractMTApplication.java:327)
at org.mt4j.AbstractMTApplication.draw(AbstractMTApplication.java:272)
at processing.core.PApplet.handleDraw(PApplet.java:1603)
at processing.core.PApplet.run(PApplet.java:1502)
at java.lang.Thread.run(Unknown Source)
Comments (4)
-
reporter -
- changed component to GUI
- edited description
-
- changed status to resolved
Resolved issue
#72: If the class name is not set, don't set the ends name.In the AssociationView, a placeholder is required for the role names TextView (otherwise, it could not be seen).
→ <<cset ee55e85c4b85>>
-
-
assigned issue to
-
assigned issue to
- Log in to comment