Skip to content

Commit

Permalink
Fixing #162
Browse files Browse the repository at this point in the history
Details is not allowed to be null.
  • Loading branch information
Elad Zelingher committed Dec 14, 2016
1 parent 4152f47 commit d055543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/net45/WampSharp/WAMP2/V2/Core/Contracts/WampException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public WampException(IDictionary<string, object> details, string errorUri, objec
IDictionary<string, object> argumentsKeywords) : base(errorUri)
{
mErrorUri = errorUri;
mDetails = details;
mDetails = details ?? mEmptyDetails;
mArguments = arguments;
mArgumentsKeywords = argumentsKeywords;
}
Expand All @@ -48,7 +48,7 @@ public WampException(IDictionary<string, object> details, string errorUri, strin
: base(message)
{
mErrorUri = errorUri;
mDetails = details;
mDetails = details ?? mEmptyDetails;
mArguments = new object[] {message};
mArgumentsKeywords = argumentsKeywords;
}
Expand All @@ -66,7 +66,7 @@ public WampException(IDictionary<string, object> details, string errorUri, objec
: base(message, inner)
{
mErrorUri = errorUri;
mDetails = details;
mDetails = details ?? mEmptyDetails;
mArguments = arguments;
mArgumentsKeywords = argumentsKeywords;
}
Expand Down

0 comments on commit d055543

Please sign in to comment.