MinecraftForge / Srg2Source

Applies source level refactors to java source code.
GNU Lesser General Public License v2.1
60 stars 32 forks source link

Nullpointer #10

Closed matthewprenger closed 8 years ago

matthewprenger commented 8 years ago

From a user in the ForgeGradle IRC channel:

Project: https://git.gildedgames.com/GildedGames/Aether-1.8 Full Stacktrace: https://gist.github.com/matthewprenger/a4b4d4c5ddc2451bd914 Relevant bits:

java.lang.NullPointerException
    at org.eclipse.jdt.core.dom.ASTParser.getClasspath(ASTParser.java:251)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1184)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:807)
    at net.minecraftforge.srg2source.util.Util.createUnit(Util.java:350)
    at net.minecraftforge.srg2source.ast.RangeExtractor.generateRangeMap(RangeExtractor.java:138)
    at net.minecraftforge.srg2source.ast.RangeExtractor.generateRangeMap(RangeExtractor.java:88)
    at net.minecraftforge.gradle.tasks.ExtractS2SRangeTask.generateRangeMap(ExtractS2SRangeTask.java:100)
LexManos commented 8 years ago

Please go through and see what you can do about making a smaller test case then 'this entire mod!'

LexManos commented 8 years ago

Closing as this is most likely been fixed int he rework to use the latest eclipse JDT to support J8 and lambdas. If this is still a issue. Privide more details such as the partial code that's actually erroring. This can be done by getting the range map file and whatever class is being parsed last is the culperate.