Merge pull request #2967 from lachlan-roberts/jetty-9.4.x-2892-NPE-MultiPartInputStreamParser

Issue #2892 - NPE in MultiPartInputStreamParser#getPart

Signed-off-by: Lachlan Roberts lachlan@webtide.com
This commit is contained in:
Greg Wilkins 2018-10-10 15:30:00 +11:00 committed by GitHub
commit fe9096dc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);