-
Notifications
You must be signed in to change notification settings - Fork 205
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 from org.springframework.ide.vscode.boot.java.utils.SpringIndexer.removeSymbolsByProject(SpringIndexer.java:674) #105
Comments
@apupier what kind of projects do you have in your workspace? |
@martinlippert recently fixed a NPE that Dave Syer was getting a lot. I'm not sure its the same problem but thought I'd mention it. Martin may know for sure. |
I don't reproduce anymore but if i remember well it was the project created from Spring initializr Maven/Java/2.0.5 and with Apache Camel dependency |
@apupier Did you change |
I changed the applciation.properties during my experiments yes. But it was not under the target/classes, it was in the src/main/resources folder. I don't reproduce today while changing it |
This is probably a bug triggered by some 'problems' in the project. E.g. as someone is editing the code, or the dependencies the project may have temportary compile errors, or maybe dependencies are not fullly resolved yet. It probably means our code needs some extra NPE checks to guard agains situations were some pieces of the AST are not known (and so they are null). Even if the problem is not immediately reproducible it should be possible to use the stacktrace to figure out where a null check might be missing. |
Added NPE checks in the indexing code to prevent NPEs from happening for |
I have a lot of errors for now so don't know the steps to reproduce but I hope it will be possible to fix the NPE without the steps to reproduce
full log of vscode-springboot:
The text was updated successfully, but these errors were encountered: