Skip to content

Commit d055543

Browse files
author
Elad Zelingher
committed
Fixing #162
Details is not allowed to be null.
1 parent 4152f47 commit d055543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public WampException(IDictionary<string, object> details, string errorUri, objec
3838
IDictionary<string, object> argumentsKeywords) : base(errorUri)
3939
{
4040
mErrorUri = errorUri;
41-
mDetails = details;
41+
mDetails = details ?? mEmptyDetails;
4242
mArguments = arguments;
4343
mArgumentsKeywords = argumentsKeywords;
4444
}
@@ -48,7 +48,7 @@ public WampException(IDictionary<string, object> details, string errorUri, strin
4848
: base(message)
4949
{
5050
mErrorUri = errorUri;
51-
mDetails = details;
51+
mDetails = details ?? mEmptyDetails;
5252
mArguments = new object[] {message};
5353
mArgumentsKeywords = argumentsKeywords;
5454
}
@@ -66,7 +66,7 @@ public WampException(IDictionary<string, object> details, string errorUri, objec
6666
: base(message, inner)
6767
{
6868
mErrorUri = errorUri;
69-
mDetails = details;
69+
mDetails = details ?? mEmptyDetails;
7070
mArguments = arguments;
7171
mArgumentsKeywords = argumentsKeywords;
7272
}

0 commit comments

Comments
 (0)