aniatbr / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

IllegalArgumentException i DefaulktSprayStyle #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using only the DefaultSprayStyle, I get the following exception:

!ENTRY org.eclipse.graphiti.ui 4 0 2012-10-01 14:03:55.465
!MESSAGE GFCommandStack.execute(Command) java.lang.IllegalArgumentException: 
Object AdaptedGradientColoredAreas or its attributes must not be null or empty
!STACK 0
java.lang.IllegalArgumentException: Object AdaptedGradientColoredAreas or its 
attributes must not be null or empty
    at org.eclipse.graphiti.services.impl.GaServiceImpl.setRenderingStyle(GaServiceImpl.java:1710)
    at org.eclipselabs.spray.runtime.graphiti.styles.DefaultSprayStyle.findStyle(DefaultSprayStyle.java:99)
    at org.eclipselabs.spray.runtime.graphiti.styles.DefaultSprayStyle.getStyle(DefaultSprayStyle.java:31)
    at org.eclipselabs.spray.shapes.RectangleShape2.getShape(RectangleShape2.java:72)
    at org.eclipselabs.spray.examples.mydiagram.features.MydiagramAddEnumerationFeatureBase.add(MydiagramAddEnumerationFeatureBase.java:65)
    at org.eclipse.graphiti.internal.command.AddFeatureCommandWithContext.execute(AddFeatureCommandWithContext.java:76)
    at org.eclipse.graphiti.ui.internal.command.GefCommandWrapper.execute(GefCommandWrapper.java:51)
    at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
    at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:37)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:102)
    at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:124)
    at org.eclipse.graphiti.ui.editor.DiagramEditor.executeFeature(DiagramEditor.java:1950)
    at org.eclipse.graphiti.features.impl.AbstractFeatureProvider.addIfPossible(AbstractFeatureProvider.java:331)
    at org.eclipse.graphiti.features.impl.AbstractFeature.addGraphicalRepresentation(AbstractFeature.java:109)
    at org.eclipselabs.spray.examples.mydiagram.features.MydiagramCreateEnumerationFeatureBase.create(MydiagramCreateEnumerationFeatureBase.java:64)
    at org.eclipse.graphiti.features.impl.AbstractCreateFeature.execute(AbstractCreateFeature.java:100)

Original issue reported on code.google.com by joswar...@gmail.com on 1 Oct 2012 at 12:26

GoogleCodeExporter commented 8 years ago
On the latest master branch.

Original comment by joswar...@gmail.com on 1 Oct 2012 at 12:26

GoogleCodeExporter commented 8 years ago
fixed: do not call GaServiceImpl.setRenderingStyle when GaService is null

Original comment by de.abg.r...@gmail.com on 8 Oct 2012 at 7:17

GoogleCodeExporter commented 8 years ago
migrated to indigo branch as well

Original comment by de.abg.r...@gmail.com on 10 Oct 2012 at 5:24