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

coverity#1326277 Explicit null dereferenced

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