[jbosstools-issues] [JBoss JIRA] (JBIDE-25808) NullPointerException in NewApplicationWizard.init
Andre Dietisheim (JIRA)
issues at jboss.org
Tue Mar 13 06:58:00 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-25808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13545000#comment-13545000 ]
Andre Dietisheim edited comment on JBIDE-25808 at 3/13/18 6:57 AM:
-------------------------------------------------------------------
The code that NPE's here is not the latest master. See current master at l115:
{code}
setConnection(connection);
{code}
while in the prior version (commit [eb176cb8e7c6d49c07fdacdee81ecb3fa9c8c3df|https://github.com/jbosstools/jbosstools-openshift/commit/eb176cb8e7c6d49c07fdacdee81ecb3fa9c8c3df] there's potential for the NPE (model could be null - resource can't since it's guarded against not being null):
{code}
if (resource != null) {
connection = ConnectionsRegistryUtil.safeGetConnectionFor(resource);
setConnection(connection);
(line 115) model.setProject(resource.getProject());
}
{code}
was (Author: adietish):
The code that NPE's here is not the latest master. See current master at l115:
{code}
setConnection(connection);
{code}
while in the prior version (commit [eb176cb8e7c6d49c07fdacdee81ecb3fa9c8c3df|https://github.com/jbosstools/jbosstools-openshift/commit/eb176cb8e7c6d49c07fdacdee81ecb3fa9c8c3df] there's potential for the NPE (model could be null - resource can't since it's guarded against not being null):
{code}
if (resource != null) {
connection = ConnectionsRegistryUtil.safeGetConnectionFor(resource);
setConnection(connection);
(l115) model.setProject(resource.getProject());
}
{code}
But then t
> NullPointerException in NewApplicationWizard.init
> -------------------------------------------------
>
> Key: JBIDE-25808
> URL: https://issues.jboss.org/browse/JBIDE-25808
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Reporter: Automated Error Reporting Bot
>
> The following problem was reported via the automated error reporting:
> Message: Unhandled event loop exception
> {noformat}
> java.lang.NullPointerException: null
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizard.init(NewApplicationWizard.java:115)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:281)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
> {noformat}
> Bundles:
> | org.eclipse.e4.core.di | 1.6.100.v20170421-1418 | 1.6.100.v20170421-1418 |
> | org.eclipse.ui | 3.109.0.v20170411-1742 | 3.109.0.v20170411-1742 |
> | org.jboss.tools.common.ui | 3.9.2.v20171116-1909 | 3.9.2.v20171116-1909 |
> | org.jboss.tools.openshift.ui | 3.4.2.v20180117-2230 | 3.4.2.v20180117-2230 |
> Operating Systems:
> | Linux | 4.15.3.fc27 | 4.15.6.fc27 |
> The above information is a snapshot of the collected data. Visit [this page|https://aer.ctrlflow.com/redhat/reviewers/#!/problems/5a9f3513e4b037c47580d959] for the latest data.
> Thank you for your assistance.
> Your friendly error-reports-inbox.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list