If var = new Class() throws any RuntimeException var will be null.
> In a code like the following:
>
> Class var = null;
> try
> {
> if (cond)
> {
> var = new Class();
> }
> else
> throw new Exception1();
> }
> catch(Exception2 e)
> {
> return;
> }
> finally
> {
> do_something_that_does_not_use_var();
> }
>
> var.method(); <----------
>
>
> In the last line, marked, the inspection says that it may produce a
> NullPointerException. Although I can't see how it can get to
> that line with
> var being null.
>
>
> []'s,
>
> Rodrigo.
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list