summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs
index a68b1f9..93b9641 100644
--- a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs
+++ b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs
@@ -7,12 +7,13 @@ namespace IvyBus
[AttributeUsage(AttributeTargets.Method,AllowMultiple = true)]
public sealed class IvyBindingAttribute : Attribute
{
- string expression;
- string[] args;
+ private string expression;
+ private string[] args;
// translate part of expression to object property
public string GetExpression(object obj)
{
+ if (obj == null) return "";
string[] values = new string[args.Length];
for (int i = 0; i < args.Length; i++)
{