CadixDev / Mercury

A source transformation and -remapping framework for Java.
Eclipse Public License 2.0
54 stars 23 forks source link

NullPointerException when attempting to remap #17

Open TwilightFlower opened 4 years ago

TwilightFlower commented 4 years ago

If you attempt to remap a .java file that is just a package declaration and imports, Mercury will NullPointerException.

TwilightFlower commented 4 years ago

Paste of the stacktrace (with a bunch of irrelevant org.gradle removed), since I forgot to put that in my original post. https://paste.ee/p/D4iSO

TwilightFlower commented 4 years ago

Actually, this seems to be happening with that file removed, as well. Not sure what this could be in that case. Different file (this one with a class definition), but the stacktrace is the same.

jamierocks commented 4 years ago

For reference the file is CloudRenderer from Minecraft Forge, where the entire class is commented out.

ramidzkh commented 4 years ago

For me this doesn't throw any errors, but it does move the file to the root package instead