Status: Accepted
Owner: allain.lalonde
Labels: Type-Defect Priority-Medium Effort-Low Toolkit-Piccolo2D.Java  
Component-Core Milestone-1.3

New issue 134 by allain.lalonde: PTransformActivity can throw null pointer  
exception
http://code.google.com/p/piccolo2d/issues/detail?id=134

What steps will reproduce the problem?
1. Create a new PTransformActivity
2. call setDestinationTransform(null)
3. Schedule the activity

What is the expected output? What do you see instead?
I'd expect that without a destination transform, it would do nothing with
the target's transform, rather than throw a NPE.

In the setRelativeTargetValue method, it makes reference to destination
wihout first checking it for null (which is can clearly be). Under most
circumstances, this should never happen, but the class makes it too easy to
setup an impossible situation.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to