Link Here
|
111 |
* @see org.apache.poi.xwpf.usermodel.IBody#getTableArray(int) |
111 |
* @see org.apache.poi.xwpf.usermodel.IBody#getTableArray(int) |
112 |
*/ |
112 |
*/ |
113 |
public XWPFTable getTableArray(int pos) { |
113 |
public XWPFTable getTableArray(int pos) { |
114 |
if(pos > 0 && pos < tables.size()){ |
114 |
if(pos >= 0 && pos < tables.size()){ |
115 |
return tables.get(pos); |
115 |
return tables.get(pos); |
116 |
} |
116 |
} |
117 |
return null; |
117 |
return null; |
Link Here
|
177 |
* @see org.apache.poi.xwpf.usermodel.IBody#getParagraphArray(int pos) |
177 |
* @see org.apache.poi.xwpf.usermodel.IBody#getParagraphArray(int pos) |
178 |
*/ |
178 |
*/ |
179 |
public XWPFParagraph getParagraphArray(int pos) { |
179 |
public XWPFParagraph getParagraphArray(int pos) { |
180 |
|
180 |
if(pos >=0 && pos < paragraphs.size()) { |
181 |
return paragraphs.get(pos); |
181 |
return paragraphs.get(pos); |
|
|
182 |
} |
183 |
return null; |
182 |
} |
184 |
} |
183 |
|
185 |
|
184 |
/** |
186 |
/** |
Link Here
|
206 |
return null; |
208 |
return null; |
207 |
} |
209 |
} |
208 |
XWPFTableRow tableRow = table.getRow(row); |
210 |
XWPFTableRow tableRow = table.getRow(row); |
209 |
if(row == null){ |
211 |
if(tableRow == null){ |
210 |
return null; |
212 |
return null; |
211 |
} |
213 |
} |
212 |
return tableRow.getTableCell(cell); |
214 |
return tableRow.getTableCell(cell); |