Proper fix for Condition bug
[potlatch2.git] / net / systemeD / controls / DataGridWarningField.as
index 647a614b488c62d5b1fa495d54aa70f8f920b0d3..dbc477784a9684485a32857b5e738e5d908dce64 100644 (file)
@@ -26,7 +26,7 @@ package net.systemeD.controls {
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
                        super.updateDisplayList(unscaledWidth, unscaledHeight);
  
-                       if (data.value.indexOf(';')>-1) {
+                       if (data.value && data.value.indexOf(';')>-1) {
                                setStyle('color',0xFF0000);
                                _image.visible=true;
                                _image.x = width -_image.width -5;