-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libtiled-java NullPointerException #2052
Comments
Just ran into the missing MapData class myself. File get deleted accidentally or something? |
Hmm. Found this commit from 6/20/2017 where a number of these files (MapData + others) suddenly appeared in code, but no *Data classes: Guessing these *Data classes need to be generated somehow... |
Hi @Ansury, Yes the files are generated from an XML schema during the build, I have just pushed a commit to one of my previous pull requests to support building with JDK versions 9 and above: I have also recently pushed a new version to Maven Central (https://search.maven.org/artifact/org.mapeditor/libtiled/1.0.2/jar) try that and let me know if that fixes the issue :) |
@Ansury Did you ever try the new version pushed by @mikepthomas, to see if this issue still exists? |
Whoops, maybe I asked the wrong person. @MinecraftPlaye, did you ever try the 1.0.2 version of libtiled, to see if this issue still exists? |
Ah, thx for the reminder. I kind of forgot about this issue. I just tested it out by setting up a new minimal test project and ran into #2048 (my comment there). |
Version 1.2.3 from Maven Central resolves this problem. |
Libtiled crashes with the following exception:
Using:
Windows 10 64bit; 1803
Java 10 x64 (see #2048 as to why not Java 11) with Gradle 4.10.2
libtiled-java: 0.17
javax.xml.bind:jaxb-api:2.3.0
Eclipse 2018-09 (4.9.0)
Trying to use the version from Github instead also failed as I was not able due to missing classes (MapData for example).
The text was updated successfully, but these errors were encountered: