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

coverity#1326282 Explicit null dereferenced

Change-Id: I1845d3e5c898e2e4bb929d723171e1cc79d57c4e
üst a5560a55
......@@ -348,15 +348,11 @@ public class ChXDiagram 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;
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")) {
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