renderer: null check before hashing
Fixes segfault.
This commit is contained in:
@@ -349,7 +349,9 @@ QByteArray RenderBackend::HashNode(const Node *n, const VideoParams ¶ms, con
|
||||
hasher.addData(reinterpret_cast<const char*>(¶ms.effective_height()), sizeof(int));
|
||||
hasher.addData(reinterpret_cast<const char*>(¶ms.format()), sizeof(PixelFormat::Format));
|
||||
|
||||
n->Hash(hasher, time);
|
||||
if (n) {
|
||||
n->Hash(hasher, time);
|
||||
}
|
||||
|
||||
return hasher.result();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user