SpoutDev/Spout — Issue #1292: GenericRectangle with no color in the constructor causes errors.
Author: sadtaco
Created: 2011-12-18 16:41:26+00:00
State: open

GenericRectangle myRect = new GenericRectangle();
myRect.setColor(new Color(0.5F, 0.0F, 1.0F));
//returns:
[SEVERE] Could not pass event CUSTOM_EVENT to pluginName
java.lang.StackOverflowError
at org.getspout.spoutapi.gui.GenericGradient.setColor(GenericGradient.java:67)
at org.getspout.spoutapi.gui.GenericRectangle.setTopColor(GenericRectangle.java:34)
at org.getspout.spoutapi.gui.GenericRectangle.setTopColor(GenericRectangle.java:22)

GenericRectangle myRect = new GenericRectangle(new Color(0.5F, 0.0F, 1.0F));
//is perfectly fine.