Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  


Starsector 0.9.1a is out! (05/10/19); Updated the Forum Rules and Guidelines (02/29/20); Blog post: GIF Roundup (04/11/20)

Author Topic: 0.8a RC19 NullPointerException if screenshots folder doesn't exist  (Read 664 times)


  • Admiral
  • *****
  • Posts: 1853
    • View Profile
    • Email

The game launches fine without the screenshot folder being present, but as soon as you try to take a screenshot, boom:

4810940 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
at javax.imageio.ImageIO.write(Unknown Source)
at com.fs.starfarer.util.o0OO.super(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$ Source)
at Source)


  • Administrator
  • Admiral
  • *****
  • Posts: 16486
    • View Profile
Re: 0.8a RC19 NullPointerException if screenshots folder doesn't exist
« Reply #1 on: May 01, 2017, 04:30:46 PM »

Hmm, weird - probably the game doesn't have permissions to make a folder in that folder. Looking at the code, it certainly tries to.