Issue #2892 - NPE in MultiPartInputStreamParser#getPart

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2018-10-10 15:17:07 +11:00
parent 6b6036a21c
commit 856b46b4b7
1 changed files with 1 additions and 3 deletions

View File

@ -39,8 +39,6 @@ import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.MultipartConfigElement;
import javax.servlet.ServletInputStream;
import javax.servlet.http.Part;
@ -515,7 +513,7 @@ public class MultiPartInputStreamParser
public Part getPart(String name)
throws IOException
{
if(_parsed)
if(!_parsed)
parse();
throwIfError();
return _parts.getValue(name, 0);