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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
Any more info required for this Bug Report? I'd love to see it fixed for 3.24
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.