Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeb Ford-Reitz2012-10-16 08:45:26 -0400
committerZeb Ford-Reitz2012-10-16 08:48:26 -0400
commita81baac4ee5bb85c54aabfed2868d841c827ea60 (patch)
treec5b291147870f44c7ab232a5cac07e1ae0088ab6
parent31d377f5e62dafa9e9f44ceb72e969d31c7d6bd5 (diff)
downloadorg.eclipse.jubula.core-gd_6.1.tar.gz
org.eclipse.jubula.core-gd_6.1.tar.xz
org.eclipse.jubula.core-gd_6.1.zip
Fixes http://bugs.eclipse.org/389586.jb_1.3_rc4gd_6.1
-rw-r--r--org.eclipse.jubula.client.ui/src/org/eclipse/jubula/client/ui/views/TestresultSummaryView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.jubula.client.ui/src/org/eclipse/jubula/client/ui/views/TestresultSummaryView.java b/org.eclipse.jubula.client.ui/src/org/eclipse/jubula/client/ui/views/TestresultSummaryView.java
index 4944cdbb6..2d77ebcd5 100644
--- a/org.eclipse.jubula.client.ui/src/org/eclipse/jubula/client/ui/views/TestresultSummaryView.java
+++ b/org.eclipse.jubula.client.ui/src/org/eclipse/jubula/client/ui/views/TestresultSummaryView.java
@@ -625,8 +625,10 @@ public class TestresultSummaryView extends ViewPart implements
//save sorting
IMemento sortChild = memento.createChild(TAG_SORT);
TableColumn sortCol = table.getSortColumn();
- sortChild.putString(TAG_SORT_COL, sortCol.getText());
- sortChild.putInteger(TAG_SORT_DIRECTION, table.getSortDirection());
+ if (sortCol != null) {
+ sortChild.putString(TAG_SORT_COL, sortCol.getText());
+ sortChild.putInteger(TAG_SORT_DIRECTION, table.getSortDirection());
+ }
}
/**
@@ -679,7 +681,7 @@ public class TestresultSummaryView extends ViewPart implements
String sortHeader = sortChild.getString(TAG_SORT_COL);
for (int i = 0; i < table.getColumnCount(); i++) {
TableColumn tblCol = table.getColumn(i);
- if (sortHeader.equals(tblCol.getText())) {
+ if (tblCol.getText().equals(sortHeader)) {
//set sort column
table.setSortColumn(tblCol);
//set sort direction

Back to the top