[ 
https://issues.apache.org/jira/browse/FALCON-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990046#comment-13990046
 ] 

Venkatesh Seetharam edited comment on FALCON-429 at 5/5/14 10:22 PM:
---------------------------------------------------------------------

Did you test this? Is it better to return empty string than null or better a 
nice message saying "no entities exist in the system"?


was (Author: svenkat):
Did you test this? Is it better to return empty string than null?

> Falcon CLI entity list command throws NPE stack trace in case of no entities
> ----------------------------------------------------------------------------
>
>                 Key: FALCON-429
>                 URL: https://issues.apache.org/jira/browse/FALCON-429
>             Project: Falcon
>          Issue Type: Bug
>            Reporter: Satish Mittal
>            Assignee: Satish Mittal
>             Fix For: 0.5
>
>         Attachments: FALCON-429.patch.txt
>
>
> When 'falcon entity -list' command is run in a cluster that doesn't have any 
> entity of a particular type, it throws following stack trace:
> {noformat}
> satish@dev2:~/install/falcon-prism$ bin/falcon entity -type process -list
> java.lang.NullPointerException
>       at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:350)
>       at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:169)
>       at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:119)
> null
> {noformat}
> Typically this error will show up in an empty cluster where entities of a 
> type are yet to be submitted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to