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

coverity#1326279 Explicit null dereferenced

Change-Id: I93ee4300bb642ca2fe032a1763c0cb36ae51bd3e
üst 097393dc
......@@ -176,15 +176,10 @@ public class ScIndexEnumeration_TableChartsEnumeration extends TestCase {
* a double-value in the cell else it inserts a formula in the cell
*/
public static void insertIntoCell(
int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag) {
int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag)
throws com.sun.star.lang.IndexOutOfBoundsException {
XCell oCell = null;
try {
oCell = TT1.getCellByPosition(CellX, CellY);
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
System.out.println("Could not get Cell");
}
XCell oCell = TT1.getCellByPosition(CellX, CellY);
if (flag.equals("V")) {
oCell.setValue(Float.parseFloat(theValue));
......
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