Skip to content
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

NullPointerException when attempting to remap #17

Open
TwilightFlower opened this issue May 31, 2020 · 4 comments
Open

NullPointerException when attempting to remap #17

TwilightFlower opened this issue May 31, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@TwilightFlower
Copy link

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

@TwilightFlower
Copy link
Author

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
Copy link
Author

TwilightFlower commented May 31, 2020

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.

@TwilightFlower TwilightFlower changed the title NullPointerException when attempting to remap a .java file with no type declaration NullPointerException when attempting to remap May 31, 2020
@jamierocks
Copy link
Member

jamierocks commented Jun 1, 2020

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

@jamierocks jamierocks added the bug Something isn't working label Jun 1, 2020
@ramidzkh
Copy link
Contributor

ramidzkh commented Jun 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants