Register Register

Author Topic: Can't Access Hangar in MekHQ 0.48.0  (Read 380 times)

Decimus Vitalis

  • Recruit
  • *
  • Posts: 2
Can't Access Hangar in MekHQ 0.48.0
« on: 25 October 2021, 13:54:15 »
So I've been playing an AtB campaign for about a week, and today when I loaded up the game I couldn't access my hangar. I also noticed that when advancing the day, the date at the top of the screen didn't change and the Command Center didn't erase the previous day's entries, but rather just added the new day at the bottom.

I opened up a new campaign to see if the problem was still there, and everything worked fine. However my second saved game showed the same issues.

Edit: This is the only error I saw in the logs. Does anyone know if I might be able to correct it?

02:05:23,050 ERROR [mekhq.gui.CampaignGUI] {AWT-EventQueue-0}
saveCampaign(), line 1330 : null
java.lang.NullPointerException
   at mekhq.MekHqXmlUtil.writeEntityToXmlString(MekHqXmlUtil.java:132)
   at mekhq.campaign.parts.Refit.writeToXml(Refit.java:1904)
   at mekhq.campaign.unit.Unit.writeToXml(Unit.java:1856)
   at mekhq.campaign.Hangar.lambda$writeToXml$1(Hangar.java:159)
   at mekhq.campaign.Hangar.lambda$forEachUnit$0(Hangar.java:116)
   at java.util.LinkedHashMap.forEach(Unknown Source)
   at mekhq.campaign.Hangar.forEachUnit(Hangar.java:116)
   at mekhq.campaign.Hangar.writeToXml(Hangar.java:158)
   at mekhq.campaign.Campaign.writeToXml(Campaign.java:4139)
   at mekhq.gui.CampaignGUI.saveCampaign(CampaignGUI.java:1320)
   at mekhq.gui.CampaignGUI.menuSaveXmlActionPerformed(CampaignGUI.java:1287)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.AbstractButton.doClick(Unknown Source)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
« Last Edit: 26 October 2021, 02:16:03 by Decimus Vitalis »

Simon Landmine

  • Lieutenant
  • *
  • Posts: 1097
  • Enthusiastic mapmaker
Re: Can't Access Hangar in MekHQ
« Reply #1 on: 25 October 2021, 13:56:08 »
Which version of MekHQ are you running? 0.48.0? 0.49.something?
"That's Lieutenant Faceplant to you, Corporal!"

Things that I have learnt through clicking too fast on 'Move Done' on MegaMek: Double-check the CF of the building before jumping onto it, check artillery arrival times before standing in the neighbouring hex, and don't run across your own minefield.

"Hmm, I wonder if I can turn this into a MM map."

Decimus Vitalis

  • Recruit
  • *
  • Posts: 2
Re: Can't Access Hangar in MekHQ
« Reply #2 on: 25 October 2021, 14:01:14 »
Sorry, I'm running 0.48.0

Windchild

  • Master Sergeant
  • *
  • Posts: 261
Re: Can't Access Hangar in MekHQ 0.48.0
« Reply #3 on: 27 October 2021, 19:42:09 »
Please open a bug report on the MekHQ tracker on my signature, containing the campaign save file and any customs.