[jbosstools-issues] [JBoss JIRA] (JBIDE-21443) NullPointerException when trying to import a BuildConfig as a new application from OpenShift 3

Viacheslav Kabanovich (JIRA) issues at jboss.org
Tue Jan 12 14:49:00 EST 2016


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

Viacheslav Kabanovich edited comment on JBIDE-21443 at 1/12/16 2:48 PM:
------------------------------------------------------------------------

Validation in GitCloningWizardPage.RepoPathValidationStatusProvider does not report an error if projectName is null.
Though, by implementation, it seems next to impossible, there is a slight possibility for ImportApplicationWizardModel.extractProjectNameFromURI(String) to return null, for example if IBuildConfig.getSourceURI() return value with trailing whitespaces or ending with '.git/' rather than just '.git'.
[~akrambenaissi], could you please put here your repository URI?

My guess may be wrong, but it would help if validation reported the case of null projectName and block 'Next' and 'Finish', then that guess would be excluded.


was (Author: scabanovich):
Validation in GitCloningWizardPage.RepoPathValidationStatusProvider does not report an error if projectName is null.
Though, by implementation, it seems next to impossible, there is a slight possibility for ImportApplicationWizardModel.extractProjectNameFromURI(String) to return null, for example if IBuildConfig.getSourceURI() return value with trailing whitespaces.
[~akrambenaissi], could you please put here your repository URI?

My guess may be wrong, but it would help if validation reported the case of null projectName and block 'Next' and 'Finish', then that guess would be excluded.

> NullPointerException when trying to import a BuildConfig as a new application from OpenShift 3
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-21443
>                 URL: https://issues.jboss.org/browse/JBIDE-21443
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>         Environment: OSX
> JBDS
> OpenShift origin 1.1.0.1
>            Reporter: Akram Ben Aissi
>            Priority: Blocker
>         Attachments: eclipse.log
>
>
> When trying to import a project from a BuildConfig (right clic import as new project), I get a NullPointerException after clicking Finish.
> Same issue occurs when clicking next, and changing the destination folder for anything that exists or does not exist
> eclipse.log is attached.



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


More information about the jbosstools-issues mailing list