This method is an abstract method.
So, it's very common that IDE's implement this method with return null.
In some languages if (null) == false.
So, Forge can in this case interpret null == false.
I prefer that I receive a BANG! (as Antonio talking) NullPointerException.
WDYT?
On Mon, Dec 29, 2014 at 4:18 PM, George Gastaldi <ggastald(a)redhat.com>
wrote:
I am sorry, I don't understand your idea, can you elaborate
more?
Em 29/12/2014, às 14:05, Daniel Cunha <danielsoro(a)gmail.com> escreveu:
George,
this case.. Can forge assume which that's is false? (Is a bad suggestion?)
On Mon, Dec 29, 2014 at 4:00 PM, George Gastaldi <ggastald(a)redhat.com>
wrote:
> There is an error in your code:
>
>
https://github.com/Fazerty/jbfex-addon/blob/master/src/main/java/org/jbfe...
>
> You are returning a null ProjectFactory, that's why the error happens.
> _______________________________________________
> forge-users mailing list
> forge-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/forge-users
>
--
Daniel Cunha (soro)
_______________________________________________
forge-users mailing list
forge-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
--
Daniel Cunha (soro)