[3.0dev] crash after redoing the creation of shapes

Bug #695200 reported by arno_b
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LaTeXDraw
Fix Released
Critical
arno_b

Bug Description

Create 2 rectangles
undo
redo
modify the colour or translate the selection or anything else -> crash

 at net.sf.latexdraw.mapping.Shape2BorderMapping.onObjectModified(Shape2BorderMapping.java:18)
 at fr.eseo.malai.mapping.MappingRegistry.onObjectModified(MappingRegistry.java:301)
 at net.sf.latexdraw.glib.models.impl.LShape.setModified(LShape.java:1298)
 at net.sf.latexdraw.glib.models.impl.LGroup.setModified(LGroup.java:658)
 at net.sf.latexdraw.actions.TranslateShape.doActionBody(TranslateShape.java:64)
 at fr.eseo.malai.action.Action.doIt(Action.java:64)
 at fr.eseo.malai.instrument.Link.interactionStops(Link.java:229)

arno_b (arno.b)
Changed in latexdraw:
assignee: nobody → arno_b (arno.b)
arno_b (arno.b)
Changed in latexdraw:
status: Triaged → Fix Released
Revision history for this message
arno_b (arno.b) wrote :

Still here:
Create two rectangles.
Select them.
Rotate Them.
Undo rotation
undo creation
redo
redo
 => crash
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
 at net.sf.latexdraw.mapping.Shape2BorderMapping.onObjectModified(Shape2BorderMapping.java:36)
 at fr.eseo.malai.mapping.MappingRegistry.onObjectModified(MappingRegistry.java:301)
 at net.sf.latexdraw.glib.models.impl.LShape.setModified(LShape.java:1302)
 at net.sf.latexdraw.glib.models.impl.LGroup.setModified(LGroup.java:658)
 at net.sf.latexdraw.actions.ModifyShapeProperty.applyValue(ModifyShapeProperty.java:199)
 at net.sf.latexdraw.actions.ModifyShapeProperty.redo(ModifyShapeProperty.java:65)
 at fr.eseo.malai.undo.UndoCollector.redo(UndoCollector.java:133)
 at fr.eseo.malai.action.Redo.doActionBody(Redo.java:50)
 at fr.eseo.malai.action.Action.doIt(Action.java:64)
 at fr.eseo.malai.instrument.Link.interactionStops(Link.java:229)
 at fr.eseo.malai.interaction.Interaction.notifyHandlersOnStop(Interaction.java:117)
 at fr.eseo.malai.interaction.TerminalState.onIngoing(TerminalState.java:33)
 at fr.eseo.malai.interaction.StateMachine.executeTransition(StateMachine.java:150)
 at fr.eseo.malai.interaction.StateMachine.onButtonPressed(StateMachine.java:230)
 at fr.eseo.malai.interaction.SwingEventManager.actionPerformed(SwingEventManager.java:281)

Changed in latexdraw:
status: Fix Released → Triaged
arno_b (arno.b)
Changed in latexdraw:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.