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

Correcting error message when "jdeploy" points to wrong jar #10

Merged
merged 1 commit into from Sep 9, 2019
Merged

Correcting error message when "jdeploy" points to wrong jar #10

merged 1 commit into from Sep 9, 2019

Conversation

tomasbjerre
Copy link
Contributor

When, in package.json, the jar does not exist:

...
  "jdeploy": {"jar": "whatever-does-not-exist.jar"},
...
07:47 $ jdeploy publish
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
	at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1174)
Caused by: java.lang.NullPointerException
	at ca.weblite.jdeploy.JDeploy.findJarFile(JDeploy.java:417)
	at ca.weblite.jdeploy.JDeploy.copyToBin(JDeploy.java:649)
	at ca.weblite.jdeploy.JDeploy._package(JDeploy.java:1058)
	at ca.weblite.jdeploy.JDeploy.install(JDeploy.java:1063)
	at ca.weblite.jdeploy.JDeploy.publish(JDeploy.java:1084)
	at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1163)

When, in package.json, the jar does not exist:
```
...
  "jdeploy": {"jar": "whatever-does-not-exist.jar"},
...
```

```bash
07:47 $ jdeploy publish
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
	at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1174)
Caused by: java.lang.NullPointerException
	at ca.weblite.jdeploy.JDeploy.findJarFile(JDeploy.java:417)
	at ca.weblite.jdeploy.JDeploy.copyToBin(JDeploy.java:649)
	at ca.weblite.jdeploy.JDeploy._package(JDeploy.java:1058)
	at ca.weblite.jdeploy.JDeploy.install(JDeploy.java:1063)
	at ca.weblite.jdeploy.JDeploy.publish(JDeploy.java:1084)
	at ca.weblite.jdeploy.JDeploy.main(JDeploy.java:1163)
```
@shannah shannah merged commit cfff433 into shannah:master Sep 9, 2019
@andrii-bodnar andrii-bodnar mentioned this pull request Dec 11, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants