qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaudsi...@apache.org
Subject svn commit: r602116 - /incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java
Date Fri, 07 Dec 2007 15:01:41 GMT
Author: arnaudsimon
Date: Fri Dec  7 07:01:40 2007
New Revision: 602116

URL: http://svn.apache.org/viewvc?rev=602116&view=rev
Log:
changed for accepting messages without headears

Modified:
    incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java

Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java?rev=602116&r1=602115&r2=602116&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java
(original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/FiledTableSupport.java
Fri Dec  7 07:01:40 2007
@@ -12,11 +12,13 @@
   public static FieldTable convertToFieldTable(Map<String,?> props)
   {
       FieldTable ft = new FieldTable();
-      for (String key : props.keySet())
+      if (props != null)
       {
-          ft.setObject(key, props.get(key));
+          for (String key : props.keySet())
+          {
+              ft.setObject(key, props.get(key));
+          }
       }
-
       return ft;
   }
 



Mime
View raw message