- Added checking for NPE

- Added newline in maven.xml

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-03-19 12:48:32 +00:00
parent 774cdcf8b5
commit 27ec68d22d
2 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,8 @@ public class StompWireFormat implements WireFormat {
MessageDispatch md = (MessageDispatch)packet;
Message message = md.getMessage();
Subscription sub = (Subscription) subscriptionsByConsumerId.get(md.getConsumerId());
sub.receive(md, out);
if (sub != null)
sub.receive(md, out);
}
return null;
}

View File

@ -181,6 +181,7 @@
<maven:reactor basedir="." goals="test" includes="${maven.multiproject.includes}" ignoreFailures="true"/>
<j:if test="${!failedProjects.isEmpty()}">
<ant:echo> </ant:echo>
<ant:echo>There are test failures in the following modules:</ant:echo>
<j:forEach var="failedProj" items="${failedProjects}">
<ant:echo> ${failedProj} </ant:echo>