aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2012-10-11 16:48:47 (EDT)
committerBernd Hufmann2012-10-11 17:01:47 (EDT)
commit0749114d8110db6a52852d9073ae2c006ee0b1d7 (patch)
tree757cb8becfa686181d4c460d539d9c19932c94a3
parent6ca699b69d5a4cb3caa9560572df94db8ebd6c13 (diff)
downloadorg.eclipse.linuxtools-0749114d8110db6a52852d9073ae2c006ee0b1d7.zip
org.eclipse.linuxtools-0749114d8110db6a52852d9073ae2c006ee0b1d7.tar.gz
org.eclipse.linuxtools-0749114d8110db6a52852d9073ae2c006ee0b1d7.tar.bz2
Fix removal of filter in SDView (Bug 391714)
Change-Id: I312a64127a8a35fbf152de8fe023df17c0d136cc Signed-off-by: Bernd Hufmann <bhufmann@gmail.com> Reviewed-on: https://git.eclipse.org/r/8175 Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
index d7cab88..08df5cd 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
@@ -654,8 +654,12 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
try {
cancelOngoingRequests();
- List<FilterCriteria> list = (List<FilterCriteria>)filters;
- fFilterCriteria = new ArrayList<FilterCriteria>(list);
+ if (filters == null) {
+ fFilterCriteria = new ArrayList<FilterCriteria>();
+ } else {
+ List<FilterCriteria> list = (List<FilterCriteria>)filters;
+ fFilterCriteria = new ArrayList<FilterCriteria>(list);
+ }
fillCurrentPage(fEvents);