[jboss-jira] [JBoss JIRA] (WFLY-1865) NPE might occur when a null object is returned from the aesh Console

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Tue Aug 13 10:34:26 EDT 2013


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

Alexey Loubyansky updated WFLY-1865:
------------------------------------

    Description: 
In cli/src/main/java/org/jboss/as/cli/impl/Console.java

177	 	 -                        return console.read(prompt).getBuffer();
178	 +                        ConsoleOutput output = console.read(prompt);
179	 +                        return output != null ? output.getBuffer() : null;


    
> NPE might occur when a null object is returned from the aesh Console
> --------------------------------------------------------------------
>
>                 Key: WFLY-1865
>                 URL: https://issues.jboss.org/browse/WFLY-1865
>             Project: WildFly
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 8.0.0.Alpha3
>            Reporter: Ståle Pedersen
>            Assignee: Alexey Loubyansky
>             Fix For: 8.0.0.Beta1
>
>
> In cli/src/main/java/org/jboss/as/cli/impl/Console.java
> 177	 	 -                        return console.read(prompt).getBuffer();
> 178	 +                        ConsoleOutput output = console.read(prompt);
> 179	 +                        return output != null ? output.getBuffer() : null;

--
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