From d055543a5d7748bc82359e0277a737eb8c2971cb Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Wed, 14 Dec 2016 21:57:27 +0200 Subject: [PATCH] Fixing #162 Details is not allowed to be null. --- .../WampSharp/WAMP2/V2/Core/Contracts/WampException.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs b/src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs index 7b408feca..1c781f3e3 100644 --- a/src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs +++ b/src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs @@ -38,7 +38,7 @@ public WampException(IDictionary details, string errorUri, objec IDictionary argumentsKeywords) : base(errorUri) { mErrorUri = errorUri; - mDetails = details; + mDetails = details ?? mEmptyDetails; mArguments = arguments; mArgumentsKeywords = argumentsKeywords; } @@ -48,7 +48,7 @@ public WampException(IDictionary details, string errorUri, strin : base(message) { mErrorUri = errorUri; - mDetails = details; + mDetails = details ?? mEmptyDetails; mArguments = new object[] {message}; mArgumentsKeywords = argumentsKeywords; } @@ -66,7 +66,7 @@ public WampException(IDictionary details, string errorUri, objec : base(message, inner) { mErrorUri = errorUri; - mDetails = details; + mDetails = details ?? mEmptyDetails; mArguments = arguments; mArgumentsKeywords = argumentsKeywords; }