summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/com/vaadin/data/util/GeneratedPropertyContainer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/com/vaadin/data/util/GeneratedPropertyContainer.java b/server/src/com/vaadin/data/util/GeneratedPropertyContainer.java
index e0b2bb7c19..98dd3ed0c1 100644
--- a/server/src/com/vaadin/data/util/GeneratedPropertyContainer.java
+++ b/server/src/com/vaadin/data/util/GeneratedPropertyContainer.java
@@ -489,7 +489,7 @@ public class GeneratedPropertyContainer extends AbstractContainer implements
@Override
public void sort(Object[] propertyId, boolean[] ascending) {
if (sortableContainer == null) {
- new UnsupportedOperationException(
+ throw new UnsupportedOperationException(
"Wrapped container is not Sortable");
}
@@ -538,8 +538,7 @@ public class GeneratedPropertyContainer extends AbstractContainer implements
@Override
public Collection<?> getSortableContainerPropertyIds() {
if (sortableContainer == null) {
- new UnsupportedOperationException(
- "Wrapped container is not Sortable");
+ return Collections.emptySet();
}
Set<Object> sortablePropertySet = new HashSet<Object>(