File templates dialog: Fix crash in overrides page with unknown base class
ClosedPublic

Authored by kossebau on Feb 9 2017, 2:57 PM.

Details

Summary

Having entered a base class which is unknown to the DUChain,
on preparing the page with overrides KDevelop crashes.

This is fixed by catching the case that there is no
context available for a base class.

Diff Detail

Repository
R33 KDevPlatform
Branch
fixCrashInFileTemplateDialogOnUnknownBaseClass
Lint
No Linters Available
Unit
No Unit Test Coverage
kossebau updated this revision to Diff 11114.Feb 9 2017, 2:57 PM
kossebau retitled this revision from to File templates dialog: Fix crash in overrides page with unknown base class.
kossebau updated this object.
kossebau added a reviewer: KDevelop.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptFeb 9 2017, 2:57 PM

Target: 5.0 (if there is a 5.0.5 planned)

Change to declaration.h will be a separate commit.

mwolff accepted this revision.Feb 9 2017, 7:50 PM
mwolff added a reviewer: mwolff.
mwolff added a subscriber: mwolff.

lgtm

This revision is now accepted and ready to land.Feb 9 2017, 7:50 PM
This revision was automatically updated to reflect the committed changes.