raeleus / skin-composer

Create skins for LibGDX scene2d.ui with a graphical interface.
MIT License
429 stars 35 forks source link

NullPointerException when creating a new custom drawable #67

Closed Spikatrix closed 4 years ago

Spikatrix commented 4 years ago

Steps to reproduce:

Result:

java.lang.NullPointerException
    at com.ray3k.skincomposer.data.ProjectData.makeResourcesRelative(ProjectData.java:315)
    at com.ray3k.skincomposer.data.ProjectData.makeResourcesRelative(ProjectData.java:346)
    at com.ray3k.skincomposer.dialog.DialogDrawables.lambda$customDrawableDialog$10(DialogDrawables.java:1922)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:153)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:111)
    at com.ray3k.skincomposer.desktop.DesktopLauncher.main(DesktopLauncher.java:31)

This crash does not happen when I create a new project instead of loading a sample project.

I'm using Linux, Skin Composer version 34

raeleus commented 4 years ago

This will be resolved with version 35. Thank you very much for the report!