Menu

#973 3.20, unable to repair warehouse items due to null pointer exception

Stable
closed
None
Fixed
2016-02-02
2015-11-10
No

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

Occurs when i try to click on the damaged medium laser in the warehouse to repair it.

1 Attachments

Discussion

  • Nicholas Walczak

    Here's a partial of the stack trace from the logfile:

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at mekhq.gui.CampaignGUI$130.include(CampaignGUI.java:6929)
    at javax.swing.DefaultRowSorter.include(Unknown Source)
    at javax.swing.DefaultRowSorter.initializeFilteredMapping(Unknown Source)
    at javax.swing.DefaultRowSorter.sort(Unknown Source)
    at javax.swing.DefaultRowSorter.setRowFilter(Unknown Source)
    at mekhq.gui.CampaignGUI.filterTechs(CampaignGUI.java:6954)
    at mekhq.gui.CampaignGUI.PartsTableValueChanged(CampaignGUI.java:3917)
    at mekhq.gui.CampaignGUI.access$1300(CampaignGUI.java:269)
    at mekhq.gui.CampaignGUI$35.valueChanged(CampaignGUI.java:1747)

     
  • scjazz

    scjazz - 2016-01-12

    Any more info required for this Bug Report? I'd love to see it fixed for 3.24

     
  • Nicholas Walczak

    • assigned_to: Nicholas Walczak
    • Resolution: None --> Fixed
    • Milestone: Undetermined --> Stable
     
  • Nicholas Walczak

    Fixed in [71bb28].

    Looks like there was a missing null-guard. The conditional before the offending conditional had a null guard, and adding a null-guard on the unit local variable seems to fix the problem and make things work as intended.

     
  • Dylan Myers

    Dylan Myers - 2016-02-02
    • Status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB