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

NPE when the inputResource is a wrong path #1042

Closed
surli opened this issue Dec 15, 2016 · 0 comments
Closed

NPE when the inputResource is a wrong path #1042

surli opened this issue Dec 15, 2016 · 0 comments

Comments

@surli
Copy link
Collaborator

surli commented Dec 15, 2016

Just created a small test:

        @Test
	public void testFileSpooned() throws Exception {
		final Launcher launcher = new Launcher();
		launcher.getEnvironment().setNoClasspath(true);
		launcher.addInputResource("./src/test/MyWrongJavaFile.java");
		launcher.run();
		assertTrue(launcher.getModel().getRootPackage() != null);
	}

Failed in error with a NPE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant