Commit b0958751 authored by Jonathan Thomas's avatar Jonathan Thomas
Browse files

Check for null CapsPtr before trying to use it.

parent 6bfc7315
...@@ -120,7 +120,7 @@ bool GstMatcher::matches(QApt::Package *package) ...@@ -120,7 +120,7 @@ bool GstMatcher::matches(QApt::Package *package)
if (!typeData.isEmpty()) { if (!typeData.isEmpty()) {
// Tries to find the type (e.g. "Gstreamer-Uri-Sinks: ") // Tries to find the type (e.g. "Gstreamer-Uri-Sinks: ")
QGst::CapsPtr caps = QGst::Caps::fromString(typeData); QGst::CapsPtr caps = QGst::Caps::fromString(typeData);
if (caps->isEmpty()) { if (!caps || caps->isEmpty()) {
continue; continue;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment