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

Potential NPE in com.thoughtworks.qdox.library.SourceLibrary#addSource(java.io.File) #131

Open
imndszy opened this issue Nov 24, 2022 · 4 comments

Comments

@imndszy
Copy link

imndszy commented Nov 24, 2022

There is a potential NPE in

JavaPackage pckg = parse( new FileInputStream( packageInfo ),
packageInfo.toURI().toURL() ).getSource().getPackage();
when parsing package-info.java returns null.

@rfscholte
Copy link
Collaborator

Well, that means that the code won't compile right?

@imndszy
Copy link
Author

imndszy commented Nov 29, 2022

Well, that means that the code won't compile right?

In my case, package-info.java is empty so the whole project still compiles successfully.

@rbrtjr
Copy link

rbrtjr commented Mar 7, 2023

I also got an NPE with com.thoughtworks.qdox.model.JavaPackage.getName() while processing IMPORTS section:

Arquivo QDOX:E:\projects\parsed\(M6)-airavata-airavata-0.19.qdox
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.thoughtworks.qdox.model.JavaPackage.getName()" because the return value of "com.thoughtworks.qdox.model.JavaSource.getPackage()" is null

@rbrtjr
Copy link

rbrtjr commented Mar 7, 2023

Another NPE on "thoughtworks"...

Exception in thread "main" com.thoughtworks.qdox.parser.ParseException: syntax error @[28,44] in file:/E:/projects/software/apache-beam-2.44.0/beam-2.44.0/runners/core-java/src/main/java/org/apache/beam/runners/core/DoFnRunner.java

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

3 participants