Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#41 NullPointerException when switching to two page view

Unscheduled
open
7
2011-04-22
2007-07-21
No

After a clean install on a freshly set up Mac Book Pro, switching to full screen using Command-T causes the following exception:

java.lang.NullPointerException
at net.sf.jomic.ui.JomicFrame.refreshTitle(JomicFrame.java:867)
at net.sf.jomic.ui.JomicFrame.propertyChange(JomicFrame.java:453)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
at net.sf.jomic.tools.BasicSettings.firePropertyChangeEvent(BasicSettings.java:472)
at net.sf.jomic.tools.BasicSettings.setProperty(BasicSettings.java:148)
at net.sf.jomic.tools.BasicSettings.setBooleanProperty(BasicSettings.java:91)
at net.sf.jomic.common.ComicSheetRenderSettings.setTwoPageMode(ComicSheetRenderSettings.java:49)
at net.sf.jomic.comic.ComicView.setTwoPageMode(ComicView.java:339)
at net.sf.jomic.ui.JomicFrame.performToggleShowTwoPages(JomicFrame.java:847)
at net.sf.jomic.ui.JomicFrame.actionPerformed(JomicFrame.java:319)
at net.sf.jomic.tools.ActionDelegate.actionPerformed(ActionDelegate.java:53)
at net.sf.jomic.ui.BooleanSettingMenuItem.itemStateChanged(BooleanSettingMenuItem.java:100)
at javax.swing.AbstractButton.fireItemStateChanged(AbstractButton.java:1910)
at javax.swing.AbstractButton$Handler.itemStateChanged(AbstractButton.java:2209)
at javax.swing.DefaultButtonModel.fireItemStateChanged(DefaultButtonModel.java:477)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:233)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:250)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:969)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2840)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2832)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
at java.awt.Component.processEvent(Component.java:5331)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3907)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Discussion

  • A quick review of the code seems to indicate that Jomic might not handle a refresh of the title bar properly in case no comic has been opened yet. This needs some more investigation.

     
    • labels: --> User Interface
    • milestone: 715018 --> Unscheduled
    • priority: 5 --> 7
    • assigned_to: nobody --> roskakori