Closed doriancransac closed 3 years ago
It appears to be an issue when the project is saved with Keep Resources Relative and Pixel drawables. To reproduce, you have to have at least one other kind of Drawable included in the project. This will be resolved with the next version.
Sweet, thanks for the update!
Hi,
I keep getting the following NPE when loading my project even though it saved properly and the resulting export works in libgdx.
I was able to figure out that the problem correlates to the presence of PIXEL objects in the json file, which I create & use as part of the "cursor" and "selection" properties of my TextField:
resulting in the following data inside the json file:
[...]
However, I was not able to reproduce the problem in "isolation" in a new project, so there must be something else from my project that's involved in it or conflicts with these PIXEL objects. I'm not seeing any differences in these json blocks between the clean "fresh" project and the corrupt project. I initially thought the problem was related to the "file: null" line but it does make sense that a PIXEL object doesn't point to a file or folder, so I have no idea what's going on with the correctFilePaths(ProjectData.java:563) method & line.
All I know is that when I remove the PIXEL object blocks from the json, the project opens again but I have to recreate them and reexport every time I close the project which is a pain.
Any idea what's going on here?