Skip to content

Commit

Permalink
OPENICF-604: NPE issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelAllioux committed Oct 4, 2016
1 parent cc92a07 commit 9a69b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FrameworkRPC/Rpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public virtual TR TrySubmitRequest<TR, TV, TE>(IRemoteRequestFactory<TR, TV, TE,
}
else if (remoteRequest.Promise == null)
{
Trace.TraceError("FATAL: Concurrency Problem! Prmoise can not be null if result is not null.");
Trace.TraceError("Concurrency Problem! Promise can not be null if result is not null.");
}
}
return remoteRequest;
Expand Down Expand Up @@ -824,7 +824,7 @@ public virtual Int64 RequestId

public virtual Task<TV> Promise
{
get { return _promise.Task; }
get { return _promise != null ? _promise.Task : default(Task<TV>); }
}

/// <summary>
Expand Down

0 comments on commit 9a69b35

Please sign in to comment.