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

DtsApi.getInterfaces - Exception in thread "main" java.lang.NullPointerException #13

Open
roblav96 opened this issue Nov 11, 2016 · 2 comments

Comments

@roblav96
Copy link
Contributor

roblav96 commented Nov 11, 2016

This happens with only a few jar files, but I get this error when throwing them through the dts-generator:

Exception in thread "main" java.lang.NullPointerException
	at com.telerik.dts.DtsApi.getInterfaces(DtsApi.java:352)
	at com.telerik.dts.DtsApi.generateDtsContent(DtsApi.java:75)
	at com.telerik.dts.Generator.generateDts(Generator.java:37)
	at com.telerik.dts.Generator.start(Generator.java:29)
	at com.telerik.Main.main(Main.java:21)

I've found that adding a check if clazz1 != null allows the generator to work.
JavaClass clazz1 = ClassRepo.findClass(intface);
The fix source:
roblav96@1dae532#diff-84b371273f2d411517c3ef4981518716

Jar Examples

Download jars here:
https://drive.google.com/file/d/0BzsNfWSNiUKLRlNOWkctb1JvZ1E/view?usp=sharing

OneSignal

java -jar dts-generator-debug.jar \
-input android24.jar \
-input android-support-v4.jar \
-input android-support-v7-appcompat.jar \
-input amazon-device-messaging-1.0.1.jar \
-input OneSignalSDK.jar \
-generate-multiple

materialdrawer

java -jar dts-generator.jar \
-input android24.jar \
-input android-support-v4.jar \
-input android-support-v7-appcompat.jar \
-input android-support-v7-recyclerview.jar \
-input materialize-1.0.0.jar \
-input materialdrawer-5.7.0.jar \
-generate-multiple
@gizmo385
Copy link

Are there any updates on this issue? It is still happening in the current version. @roblav96

@roblav96
Copy link
Contributor Author

@gizmo385 checkout this repo of a presentation i did at ns dev day 2017 in nyc. itll walk you through how to generate android dts files

https://github.com/roblav96/nativescript-devday2017

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

2 participants