Commit b82e1a9c by Jamie Madill

Fix parity bug in Error::createMessageString.

The check should be "==" instead of "!=". This gave a crash any time we would generate an Error with a message. Change-Id: I9217e6237ee8a2d3a4d6caa799b8508edbf4e774 Reviewed-on: https://chromium-review.googlesource.com/244754Reviewed-by: 's avatarAustin Kinross <aukinros@microsoft.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 846ca843
......@@ -68,7 +68,7 @@ Error &Error::operator=(const Error &other)
void Error::createMessageString() const
{
if (mMessage != NULL)
if (mMessage == nullptr)
{
mMessage = new std::string();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment