[testng-dev] Testng 6.9.4: Nullpointer in org.testng.DependencyMap.getMethodDependingOn(String, ITestNGMethod)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] Testng 6.9.4: Nullpointer in org.testng.DependencyMap.getMethodDependingOn(String, ITestNGMethod)

Adrian Höhn
Tenstng 6.9.4 fails with a nullpointer exception if variable l is null and 

fromMethod.ignoreMissingDependencies() is not true.


The foreach tries to iterate in this case over a List with value null.


Fix:

surround for (ITestNGMethod m : l) { with an aditional "if(l != null){" check.



--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [testng-dev] Testng 6.9.4: Nullpointer in org.testng.DependencyMap.getMethodDependingOn(String, ITestNGMethod)

Cédric Beust ♔-2
Is the bug still present in the latest version?

-- 
Cédric


On Thu, Sep 17, 2015 at 12:01 AM, Adrian Höhn <[hidden email]> wrote:
Tenstng 6.9.4 fails with a nullpointer exception if variable l is null and 

fromMethod.ignoreMissingDependencies() is not true.


The foreach tries to iterate in this case over a List with value null.


Fix:

surround for (ITestNGMethod m : l) { with an aditional "if(l != null){" check.



--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.