Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Skills and Story Points (07/08/19)

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

TJJ

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

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

Code
4810940 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 15192
    • 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.
Logged