Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception when inheriting FlowChart? (Read 3861 times)
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Exception when inheriting FlowChart?
May 8th, 2007 at 7:53am
Print Post  
I've created a class called Diagram that extends FlowChart.
All its constructor has is:

public Diagram () {
    super();
}

Still, when I init it (using new Diagram()), my application fails with this error:


Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(Unknown Source)
at com.mindfusion.jdiagram.FlowChart.a(FlowChart.java:268)
at com.mindfusion.jdiagram.FlowChart.<init>(FlowChart.java:238)
at Diagram.<init>(Diagram.java:10)
....

Does anybody know what may be the reason?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception when inheriting FlowChart?
Reply #1 - May 8th, 2007 at 9:43am
Print Post  
The control tried to load the mouse cursor images from a path relative to the class of the "this" object. Now it should always load them from the FlowChart.class path; try this updated version:

http://www.mindfusion.org/_temp/JDiagram.jar

Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Exception when inheriting FlowChart?
Reply #2 - May 8th, 2007 at 10:31am
Print Post  
That solved the issue.
Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint