From: Jeff W. <jww...@ya...> - 2004-08-31 02:01:53
|
I started working on a Converter for the Bass Pod and I immediately ran into a problem. After I added the converter to my config, I tried opening a library window and selecting Get... (making sure the library window has the focus). The Get Sysex Data dialog does not appear and the following exception is generated: java.lang.NullPointerException at core.SysexGetDialog$DriverActionListener.actionPerformed(SysexGetDialog.java:231) at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197) at javax.swing.JComboBox.contentsChanged(JComboBox.java:1268) at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100) at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88) at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126) at javax.swing.JComboBox.addItem(JComboBox.java:690) at core.SysexGetDialog$DeviceActionListener.actionPerformed(SysexGetDialog.java:201) at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197) at javax.swing.JComboBox.contentsChanged(JComboBox.java:1268) at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100) at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88) at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126) at javax.swing.JComboBox.addItem(JComboBox.java:690) at core.SysexGetDialog.<init>(SysexGetDialog.java:75) at core.Actions$GetAction.actionPerformed(Actions.java:896) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:321) at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:83) at java.awt.MenuItem.processActionEvent(MenuItem.java:589) at java.awt.MenuItem.processEvent(MenuItem.java:548) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:285) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:273) at java.awt.EventQueue.dispatchEvent(EventQueue.java:458) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) I thought it was something with my Bass Pod Converter so I removed it from my config (leaving the other Bass Pod drivers in place) and repeated the test. This time the Get Sysex Data dialog displays and everything appears to work normally. I put the converter back in and the problem comes back. I decided to remove the Bass Pod from the config entirely and test with other device/drivers that use a Converter. I cleaned the config out completely and tested with one device/driver at a time. The same NullPointerException occurs on all of the ones I tested. I tested the following devices, quitting and restarting the program and cleaning out the config between each test: Yamaha TG100 Kawai K4 Yamaha DX7 Korg X3 (this one has two converters) Yamaha FS1R I tried using my debugger to place breakpoints around where the exception is happening but for some reason, my breakpoints aren't working. Anybody have any ideas? Could somebody run this test and see if they get the same result? Thanks, Jeff _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |