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

coverity#1326278 Explicit null dereferenced

Change-Id: Idc7f4d852a10e4943beca1f1986dc8e7cf2354d5
üst d2583792
......@@ -221,14 +221,8 @@ public class ScChartObj extends TestCase {
*/
public static void insertIntoCell(
int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag)
{
XCell oCell = null;
try {
oCell = TT1.getCellByPosition(CellX, CellY);
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
System.out.println("Could not get Cell");
}
throws com.sun.star.lang.IndexOutOfBoundsException {
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