We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec1a42 commit 646fe5cCopy full SHA for 646fe5c
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerComparator.java
@@ -187,7 +187,9 @@ void restore(IMemento memento) {
187
* Save the current sort field in the memento.
188
*/
189
void saveState(IMemento memento) {
190
- memento.putString(PRIMARY_SORT_FIELD_TAG, MarkerSupportInternalUtilities.getId(fields[0]));
+ if (fields != null && fields.length > 0) {
191
+ memento.putString(PRIMARY_SORT_FIELD_TAG, MarkerSupportInternalUtilities.getId(fields[0]));
192
+ }
193
Iterator<MarkerField> descendingIterator = descendingFields.iterator();
194
while (descendingIterator.hasNext()) {
195
memento.createChild(DESCENDING_FIELDS, (MarkerSupportInternalUtilities.getId(descendingIterator.next())));
0 commit comments