[jbosstools-issues] [JBoss JIRA] (JBIDE-20417) NPE while trying to create an OpenShift project

Fred Bricon (JIRA) issues at jboss.org
Tue Aug 4 18:18:02 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-20417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon resolved JBIDE-20417.
---------------------------------
           Labels: openshift_v3  (was: )
         Assignee: Fred Bricon
    Fix Version/s: 4.3.0.CR1
       Resolution: Done


Added null check on status. 

The error message is now more explicit:

!http://content.screencast.com/users/fbricon/folders/Jing/media/38bbc4af-d880-4e5b-909a-7fe7311e12bf/00000137.png|width=550! (although I have no idea why this is happening)

> NPE while trying to create an OpenShift project
> -----------------------------------------------
>
>                 Key: JBIDE-20417
>                 URL: https://issues.jboss.org/browse/JBIDE-20417
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.0.Beta2
>            Reporter: Fred Bricon
>            Assignee: Fred Bricon
>              Labels: openshift_v3
>             Fix For: 4.3.0.CR1
>
>
> I'm running OS3 as a vagrant image (https://github.com/jcantrill/jctoolbox/blob/jimmi_based_box/openshift/Vagrantfile)
> When trying to create an openshift project, I get an exception when clicking finish :
> !http://content.screencast.com/users/fbricon/folders/Jing/media/2ce1f1c3-892d-4f25-a991-bba7af592aa5/00000136.png|width=600!
> {noformat}
> java.lang.NullPointerException
> 	at org.jboss.tools.openshift.internal.ui.wizard.project.NewProjectWizard$1.doRun(NewProjectWizard.java:52)
> 	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {noformat}
> The NPE actually occurs in a catch block, where e.getStatus() is null:
> {code}
> } catch (OpenShiftException e) {
> 					return	OpenShiftUIActivator.statusFactory().errorStatus(
> 							NLS.bind("Could not create project \"{0}\": {1}", getModel().getProjectName(), e.getStatus().getMessage()), e);
> 				}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list