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; }