Merge pull request #115 from olegz/INT-2135-mongo-patch

fixed NPE in MongoDbMessageStore
  removed XSD versions from Gemfire test configs
This commit is contained in:
Mark Fisher
2011-10-10 12:39:39 -04:00
3 changed files with 8 additions and 6 deletions

View File

@@ -6,10 +6,10 @@
xmlns:util="http://www.springframework.org/schema/util"
xmlns:int-gfe="http://www.springframework.org/schema/integration/gemfire"
xsi:schemaLocation="http://www.springframework.org/schema/integration/gemfire http://www.springframework.org/schema/integration/gemfire/spring-integration-gemfire.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire-1.1.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<gfe:cache use-bean-factory-locator="false" id="client-cache"/>

View File

@@ -5,7 +5,7 @@
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xsi:schemaLocation="http://www.springframework.org/schema/integration/gemfire http://www.springframework.org/schema/integration/gemfire/spring-integration-gemfire.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire-1.1.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

View File

@@ -343,9 +343,11 @@ public class MongoDbMessageStore extends AbstractMessageGroupStore implements Me
}
wrapper.setMarked(source.get(MARKED_KEY) != null);
wrapper.setCompletedGroup(completeGroup.booleanValue());
if (completeGroup != null){
wrapper.setCompletedGroup(completeGroup.booleanValue());
}
return (S) wrapper;
}
return null;