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

java.lang.NullPointerException v0.0.3 #34

Closed
karelbecerra opened this issue Sep 22, 2016 · 5 comments
Closed

java.lang.NullPointerException v0.0.3 #34

karelbecerra opened this issue Sep 22, 2016 · 5 comments

Comments

@karelbecerra
Copy link

I just download the plugging (fresh Visual Studio) using Ubuntu 16.04

Visual Studio from (code_1.5.2-1473686317_amd64.deb)

[Error] Sep 22, 2016 10:19:08 AM Exception on incoming message dispatcher
null
java.lang.NullPointerException
at org.jboss.tools.vscode.java.handlers.DocumentLifeCycleHandler.handleChanged(DocumentLifeCycleHandler.java:157)
at org.jboss.tools.vscode.java.handlers.DocumentLifeCycleHandler.access$2(DocumentLifeCycleHandler.java:154)
at org.jboss.tools.vscode.java.handlers.DocumentLifeCycleHandler$ChangeHandler$1.run(DocumentLifeCycleHandler.java:98)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2262)
at org.jboss.tools.vscode.java.handlers.DocumentLifeCycleHandler$ChangeHandler.handle(DocumentLifeCycleHandler.java:95)
at org.jboss.tools.vscode.java.handlers.DocumentLifeCycleHandler$ChangeHandler.handle(DocumentLifeCycleHandler.java:1)
at org.jboss.tools.langs.base.LSPServer.dispatchNotification(LSPServer.java:222)
at org.jboss.tools.langs.base.LSPServer.messageReceived(LSPServer.java:156)
at org.jboss.tools.langs.transport.AbstractConnection$DispatcherThread.run(AbstractConnection.java:32)

@tills13
Copy link

tills13 commented Sep 22, 2016

I've seen this issue when I try to run the extension on a project which doesn't have a pom.xml file in the root directory.

@fbricon
Copy link
Collaborator

fbricon commented Sep 22, 2016

Could you provide a sample project to reproduce the problem?

@karelbecerra
Copy link
Author

karelbecerra commented Sep 22, 2016

Hello fbricon. I downloaded latest Visual Studio version (code_1.5.3-1474533365_amd64.deb) installed the plugin and it's working. Btw great job!!

Steps to reproduce:
1- sudo dpkg -i code_1.5.2-1473686317_amd64.deb <--- 1.5.2
2- install the plugin
3- create a simple maven project (starter project)
4- edit a java file

@gorkem gorkem added this to the Late September 2016 milestone Sep 22, 2016
@fbricon
Copy link
Collaborator

fbricon commented Sep 22, 2016

We need to ensure all usages of JDTUtils.resolveCompilationUnit(uri) are null-safe

@gorkem
Copy link
Contributor

gorkem commented Sep 23, 2016

Fixed on LS repository

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

No branches or pull requests

4 participants