Skip to content

Commit

Permalink
Merge pull request openweave#13 from abroekhof/abroekhof/bug/nullderef
Browse files Browse the repository at this point in the history
Check for NULL data sink
  • Loading branch information
robszewczyk authored Aug 10, 2018
2 parents f26a6dc + 1d2cd73 commit 5591b7e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2499,6 +2499,7 @@ void SubscriptionClient::OnUpdateConfirm(WEAVE_ERROR aReason, nl::Weave::Profile
mInProgressUpdateList.GetItemAt(j, traitPath);

updatableDataSink = Locate(traitPath.mTraitDataHandle, mDataSinkCatalog);
VerifyOrExit(updatableDataSink != NULL, err = WEAVE_ERROR_WDM_SCHEMA_MISMATCH);

if (! mInProgressUpdateList.AreFlagsSet(j, kFlag_Private))
{
Expand Down

0 comments on commit 5591b7e

Please sign in to comment.