Skip to content

Commit

Permalink
add null check #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Nov 30, 2017
1 parent 71b530f commit 7cc4614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/uREPL/Scripts/Gui/FieldItems/ReadonlyFieldItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ReadonlyFieldItem : FieldItem
public override object value
{
get { return Convert.ChangeType(valueText.text, fieldType); }
protected set { valueText.text = value.ToString(); }
protected set { valueText.text = (value == null) ? "null" : value.ToString(); }
}

void Update()
Expand Down

0 comments on commit 7cc4614

Please sign in to comment.