Fixed NPE found by Sigalig Whirligig.

I find this super annoying about flash:
    for (propName in objRef) { // this works fine if objRef is null
    if (propName in objRef) { // this NPEs if objRef is null


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@634 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-08-19 02:41:30 +00:00
parent cbe1f76632
commit b7e3f617f0
+1 -1
View File
@@ -102,7 +102,7 @@ public class TextFieldUtil
{
var tf :TextField = (clazz == null) ? new TextField() : TextField(new clazz());
if ("outlineColor" in initProps) {
if ((initProps != null) && ("outlineColor" in initProps)) {
tf.filters = [ new GlowFilter(uint(initProps["outlineColor"]), 1, 2, 2, 255) ];
}