2004 IR Help Posted August 30, 2006 Share Posted August 30, 2006 By: Peter VanCaeseele - peter_vc Error on iReports startup 2004-02-14 14:20 I'm getting the following error: java.lang.NullPointerException at it.businesslogic.ireport.gui.JMDIDesktopPane.addPropertyChangeListener(JMDIDesktopPane.java:91) at javax.swing.plaf.basic.BasicDesktopPaneUI.installListeners(BasicDesktopPaneUI.java:134) at javax.swing.plaf.basic.BasicDesktopPaneUI.installUI(BasicDesktopPaneUI.java:101) at javax.swing.JComponent.setUI(JComponent.java:624) at javax.swing.JDesktopPane.setUI(JDesktopPane.java:139) at javax.swing.JDesktopPane.updateUI(JDesktopPane.java:208) at javax.swing.JDesktopPane.<init>(JDesktopPane.java:114) at it.businesslogic.ireport.gui.JMDIDesktopPane.<init>(JMDIDesktopPane.java:59) at it.businesslogic.ireport.gui.MainFrame.initComponents(MainFrame.java:594) at it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:84) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:4122) Exception in thread "main" To fix this, change the JMDIDesktopPane class as follows: public void addPropertyChangeListener(PropertyChangeListener listener) { if(propertySupport != null) propertySupport.addPropertyChangeListener(listener); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now