coverity#982764 Dereference null return value
Change-Id: Ib0f01bf529a739e5f92cd41979c18d76d7b545d1
This commit is contained in:
@@ -395,10 +395,10 @@ void ScPivotLayoutDlg::AddField( size_t nFromIndex, ScPivotFieldType eToType, co
|
|||||||
if (!bAllowed)
|
if (!bAllowed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
size_t nAt = 0;
|
||||||
ScDPFieldControlBase* toWnd = GetFieldWindow(eToType);
|
ScDPFieldControlBase* toWnd = GetFieldWindow(eToType);
|
||||||
if (!toWnd)
|
if (!toWnd)
|
||||||
return;
|
return;
|
||||||
size_t nAt = 0;
|
|
||||||
ScDPFieldControlBase* rmWnd1 = NULL;
|
ScDPFieldControlBase* rmWnd1 = NULL;
|
||||||
ScDPFieldControlBase* rmWnd2 = NULL;
|
ScDPFieldControlBase* rmWnd2 = NULL;
|
||||||
GetOtherFieldWindows(eToType, rmWnd1, rmWnd2);
|
GetOtherFieldWindows(eToType, rmWnd1, rmWnd2);
|
||||||
@@ -454,6 +454,8 @@ void ScPivotLayoutDlg::AppendField(size_t nFromIndex, ScPivotFieldType eToType)
|
|||||||
|
|
||||||
size_t nAt = 0;
|
size_t nAt = 0;
|
||||||
ScDPFieldControlBase* toWnd = GetFieldWindow(eToType);
|
ScDPFieldControlBase* toWnd = GetFieldWindow(eToType);
|
||||||
|
if (!toWnd)
|
||||||
|
return;
|
||||||
ScDPFieldControlBase* rmWnd1 = NULL;
|
ScDPFieldControlBase* rmWnd1 = NULL;
|
||||||
ScDPFieldControlBase* rmWnd2 = NULL;
|
ScDPFieldControlBase* rmWnd2 = NULL;
|
||||||
GetOtherFieldWindows(eToType, rmWnd1, rmWnd2);
|
GetOtherFieldWindows(eToType, rmWnd1, rmWnd2);
|
||||||
|
Reference in New Issue
Block a user