guard against dataengine missing
ClosedPublic

Authored by mart on Oct 28 2016, 2:53 PM.

Details

Summary

this should never happen, but weird distribution packaging policies
can make this happen. At least don't crash the whole sesison

CCBUG:371779

Test Plan

with dataengine present still works, with dataengine plugin delteted
it still load without crashing, even if broken

Diff Detail

Repository
R114 Plasma Addons
Branch
arcpatch-D3191_1
Lint
No Linters Available
Unit
No Unit Test Coverage
mart updated this revision to Diff 7733.Oct 28 2016, 2:53 PM
mart retitled this revision from to guard against dataengine missing.
mart updated this object.
mart edited the test plan for this revision. (Show Details)
mart added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 28 2016, 2:53 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

So why is PluginLoader::loadDataEngine returning something?

mart added a comment.Oct 31 2016, 10:18 AM

So why is PluginLoader::loadDataEngine returning something?

from https://bugs.kde.org/show_bug.cgi?id=371779 it looks like it's not?

So then checking isValid() is useless.

mart updated this revision to Diff 7790.Oct 31 2016, 5:10 PM
  • remove unneeded isValid() calls
davidedmundson accepted this revision.Oct 31 2016, 5:15 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Oct 31 2016, 5:15 PM
This revision was automatically updated to reflect the committed changes.