ArtemHarchishin / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

PseudoThread NPE #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PsudeoThread will throw a null object reference exception when calling 
"isRunning" on a thread that has already completed.

Right now it is written as:
public function isRunning():Boolean {
    return intTimer.running;
}

Changing it to this should solve the problem:
public function isRunning():Boolean {
    return (intTimer != null) ? intTimer.running : false;
}

Original issue reported on code.google.com by llin...@gmail.com on 28 Jun 2011 at 11:32

GoogleCodeExporter commented 9 years ago
Hey there,

nice catch! Changes have made and are available in the trunk.
Thanks for contributing!

cheers,

Roland

Original comment by ihatelivelyids on 29 Jun 2011 at 6:30