Skip to content

Commit

Permalink
Update AndroidCallbacks.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Feb 13, 2024
1 parent 0bf289c commit cc3367e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/java/AndroidCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void ReportCallback::OnAttributeData(const app::ConcreteDataAttributePath & aPat
VerifyOrReturn(!aPath.IsListItemOperation(), ChipLogError(Controller, "Expect non-list item operation"); aPath.LogPath());

jobject nodeState = mNodeStateObj.ObjectRef();
if (aStatus.IsFailure())
if (apStatus != nullptr && aStatus.IsFailure())
{
ChipLogError(Controller, "Receive bad status %s", ErrorStr(aStatus.ToChipError()));
jobject statusObj = nullptr;
Expand Down

0 comments on commit cc3367e

Please sign in to comment.