Skip to content

Commit e881667

Browse files
authored
Merge pull request #116 from RobotecAI/pantosz/add_publisher_check
Added nullptr check in the ViewportStreamerSystemComponent
2 parents 592347e + ed94dfb commit e881667

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Gems/ViewportStreamer/Code/Source/Clients/ViewportStreamerSystemComponent.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ namespace ViewportStreamer
190190
}
191191

192192
auto imageMessage = CreateImageMessageFromReadBackResult(GetEntityId(), result, header);
193-
m_imagePublisher->publish(imageMessage);
193+
if (m_imagePublisher)
194+
{
195+
m_imagePublisher->publish(imageMessage);
196+
}
194197
};
195198
RequestFrame(passHierarchy, imageReadyCallback);
196199
}

0 commit comments

Comments
 (0)