commit | 93426ec53a8710c0066374e839ea4bbb0fea19af | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Jan 31 18:08:24 2013 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Jan 31 18:08:24 2013 +0000 |
tree | 7c6eceaef4049ce89223cd48a7a3bce72f8697db | |
parent | 06ed4fca66e007db9479e59402b35b37ab0d324a [diff] |
Don't call stop() on an uninstalled bundle when refreshing, since it will just result in an exception that fails one of the CT test cases since we end up firing an extra framework event. (FELIX-3807) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1441093 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java index 03a4a52..94e977f 100644 --- a/framework/src/main/java/org/apache/felix/framework/Felix.java +++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -4710,7 +4710,10 @@ try { m_oldState = m_bundle.getState(); - stopBundle(m_bundle, false); + if (m_oldState != Bundle.UNINSTALLED) + { + stopBundle(m_bundle, false); + } } catch (Throwable ex) {