1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

fix for AUT-691 Crash

This commit is contained in:
adam-m
2012-12-03 17:43:23 -05:00
parent b38c7dd80e
commit 6ccbe1d8bf

View File

@@ -404,7 +404,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
* @param table the object table
* @return max the maximum width of the column
*/
private int getMaxColumnWidth(int index, FontMetrics metrics, int margin, int padding, String header, Object[][] table) {
private synchronized int getMaxColumnWidth(int index, FontMetrics metrics, int margin, int padding, String header, Object[][] table) {
// set the tree (the node / names column) width
String headerName = header;
int headerWidth = metrics.stringWidth(headerName); // length of the header
@@ -412,7 +412,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
// Get maximum width of column data
for (int i = 0; i < table.length; i++) {
if (index >= table[i].length) {
if (table[i] == null || index >= table[i].length) {
continue;
}
String test = table[i][index].toString();