Author: mcombellack
Date: Tue May 20 06:19:45 2008
New Revision: 658237

URL: http://svn.apache.org/viewvc?rev=658237&view=rev
Log:
Added null check to avoid NPE when ContentType on the Request is null (FindBugs 
reported issue)

Modified:
    
incubator/tuscany/java/sca/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java

Modified: 
incubator/tuscany/java/sca/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java?rev=658237&r1=658236&r2=658237&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
 (original)
+++ 
incubator/tuscany/java/sca/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
 Tue May 20 06:19:45 2008
@@ -329,7 +329,7 @@
 
             // Create a new Atom entry
             String contentType = request.getContentType();
-            if (contentType.startsWith("application/atom+xml")) {
+            if (contentType != null && 
contentType.startsWith("application/atom+xml")) {
 
                 // Read the entry from the request
                 org.apache.abdera.model.Entry feedEntry;


Reply via email to