Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 393238

Summary: NPE in ClientImport#readChunk
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2012-10-31 09:52:13 EDT
Found in log on orionhub.org, running 1.0 final.

2012-10-21 16:16:02.122 [qtp1187530440-871] WARN  o.e.jetty.servlet.ServletHandler - /xfer/import/robred/Uploaded%20Content
java.lang.NullPointerException: null
        at org.eclipse.orion.internal.server.servlets.xfer.ClientImport.readChunk(ClientImport.java:244) ~[na:na]
        at org.eclipse.orion.internal.server.servlets.xfer.ClientImport.doPut(ClientImport.java:210) ~[na:na]
        at org.eclipse.orion.internal.server.servlets.xfer.ClientImport.doPost(ClientImport.java:155) ~[na:na]
        at org.eclipse.orion.internal.server.servlets.xfer.TransferServlet.doPostImport(TransferServlet.java:133) ~[na:na]
Comment 1 John Arthorne CLA 2012-10-31 14:40:18 EDT
Just needed a simple null check for when request does not specify content type:

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=d85f3552b008976512bc80f7118a87c984b22593