Kaydet (Commit) a69209a4 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982765 Dereference null return value

Change-Id: I2fd5d432aff737016948a4f7bd45888cf6f4dba2
üst 22a7f8b1
...@@ -395,8 +395,10 @@ void ScPivotLayoutDlg::AddField( size_t nFromIndex, ScPivotFieldType eToType, co ...@@ -395,8 +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)
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);
......
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