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:
@@ -102,7 +102,7 @@ public class TextFieldUtil
|
|||||||
{
|
{
|
||||||
var tf :TextField = (clazz == null) ? new TextField() : TextField(new clazz());
|
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) ];
|
tf.filters = [ new GlowFilter(uint(initProps["outlineColor"]), 1, 2, 2, 255) ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user