#1257 More null pointer guards based on CppCheck

This commit is contained in:
Magne Sjaastad
2017-02-24 16:16:58 +01:00
parent bf1f8fcbaa
commit 48599f7a94
6 changed files with 28 additions and 17 deletions

View File

@@ -289,8 +289,10 @@ QString RimViewLinker::displayNameForView(RimView* view)
{
RimCase* rimCase = NULL;
view->firstAncestorOrThisOfType(rimCase);
displayName = rimCase->caseUserDescription() + ": " + view->name;
if (rimCase)
{
displayName = rimCase->caseUserDescription() + ": " + view->name;
}
}
return displayName;