Skip to content

Commit

Permalink
[xulrunner] Protect EmbedLiteApp from dereferencing null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
rojkov committed Jul 7, 2014
1 parent 7a55d94 commit 24e3e75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embedding/embedlite/EmbedLiteApp.cpp
Expand Up @@ -333,6 +333,7 @@ void
EmbedLiteApp::SendObserve(const char* aMessageName, const char16_t* aMessage)
{
LOGT("topic:%s", aMessageName);
NS_ENSURE_TRUE(mAppParent, );
unused << mAppParent->SendObserve(nsDependentCString(aMessageName), aMessage ? nsDependentString((const char16_t*)aMessage) : nsString());
}

Expand Down

0 comments on commit 24e3e75

Please sign in to comment.