Skip to content

Commit cc3367e

Browse files
authored
Update AndroidCallbacks.cpp
1 parent 0bf289c commit cc3367e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/java/AndroidCallbacks.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void ReportCallback::OnAttributeData(const app::ConcreteDataAttributePath & aPat
288288
VerifyOrReturn(!aPath.IsListItemOperation(), ChipLogError(Controller, "Expect non-list item operation"); aPath.LogPath());
289289

290290
jobject nodeState = mNodeStateObj.ObjectRef();
291-
if (aStatus.IsFailure())
291+
if (apStatus != nullptr && aStatus.IsFailure())
292292
{
293293
ChipLogError(Controller, "Receive bad status %s", ErrorStr(aStatus.ToChipError()));
294294
jobject statusObj = nullptr;

0 commit comments

Comments
 (0)