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

coverity#1326260 Explicit null dereferenced

Change-Id: I75b9cb661a7a45304bf32395ad980f83621f4612
üst eacf46e6
......@@ -247,7 +247,7 @@ public abstract class BaseNLPSolver extends WeakBase
int lastSheet = -1, lastRow = -1;
for (int i = 0; i < m_variableCount; i++) {
if (lastSheet == m_variables[i].Sheet && lastRow == m_variables[i].Row &&
currentRow.EndCol == m_variables[i].Column - 1)
currentRow != null && currentRow.EndCol == m_variables[i].Column - 1)
currentRow.EndCol++;
else {
currentRow = new RowInfo(m_variables[i].Sheet, m_variables[i].Row);
......
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