[jbosstools-issues] [JBoss JIRA] (JBIDE-22657) smart import nullpointer

Mickael Istria (JIRA) issues at jboss.org
Mon Jun 27 12:41:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257546#comment-13257546 ] 

Mickael Istria commented on JBIDE-22657:
----------------------------------------

Seems like {code}new BufferedReader(new InputStreamReader(content, webXml.getCharset()));{code} returns null whereas there is an activation policy that makes that this like should only be run in case project contains a web.xml file... So in this case, the root cause seems to be that the JaxRS configurator gets enabled whereas it shouldn't.
In any case, we should also add null checks before the trying to close stream/reader.

> smart import nullpointer
> ------------------------
>
>                 Key: JBIDE-22657
>                 URL: https://issues.jboss.org/browse/JBIDE-22657
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>            Reporter: Max Rydahl Andersen
>            Assignee: Mickael Istria
>             Fix For: 4.4.1.M1, 4.5.0.M1
>
>
> when using smartimport to import https://github.com/maxandersen/imapfilter-docker.git from disk I got a NPE in jaxrs:
> {code}
> java.lang.NullPointerException
> 	at org.jboss.tools.ws.jaxrs.ui.internal.importer.JaxRsConfigurator.canConfigure(JaxRsConfigurator.java:66)
> 	at org.eclipse.ui.internal.wizards.datatransfer.SmartImportJob.importProjectAndChildrenRecursively(SmartImportJob.java:466)
> 	at org.eclipse.ui.internal.wizards.datatransfer.SmartImportJob.run(SmartImportJob.java:242)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list