From fda2d88f3447402a47ebc134543fa12dac6ab037 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 8 Jul 2010 08:52:32 +0000 Subject: [PATCH] Slight fix in Session --- Common/dataobjects/Session.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Common/dataobjects/Session.cs b/Common/dataobjects/Session.cs index 8818604..4bf6bda 100644 --- a/Common/dataobjects/Session.cs +++ b/Common/dataobjects/Session.cs @@ -16,6 +16,9 @@ namespace FLocal.Common.dataobjects { private string key; public static SessionKey Parse(string _key) { + if(_key == null) { + throw new FLocalException("SessionKey is null"); + } return new SessionKey { key = _key }; }