[jboss-jira] [JBoss JIRA] (WFLY-2009) IOException in aesh console initialization results in NPE

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Wed Sep 18 03:31:04 EDT 2013


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

RH Bugzilla Integration commented on WFLY-2009:
-----------------------------------------------

Jan Martiska <jmartisk at redhat.com> changed the Status of [bug 1004714|https://bugzilla.redhat.com/show_bug.cgi?id=1004714] from ON_QA to VERIFIED
                
> IOException in aesh console initialization results in NPE
> ---------------------------------------------------------
>
>                 Key: WFLY-2009
>                 URL: https://issues.jboss.org/browse/WFLY-2009
>             Project: WildFly
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Jan Martiska
>            Assignee: Jan Martiska
>             Fix For: 8.0.0.Beta1
>
>
> In source file org.jboss.as.cli.impl.Console, method Factory.getConsole:
> if the constructor call "new org.jboss.aesh.console.Console()" leads to an IOException, it is only logged and then ignored, always yielding a NullPointerException just a few lines later (console.addCompletion(new Completion() ...)
> I think the IOException should rather be rethrown wrapped in a CliInitializationException, so the resulting exception will not lose track of why this happened. Allowing a NPE go out of the internals is a wrong approach.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list