Permalink
Browse files

Fixed NPE that occurs when multipart form text parameter is nil

  • Loading branch information...
1 parent a03d2a7 commit 358c701d9901b23ebcf257a570b868deb8df6231 @weavejester weavejester committed Jul 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ring-core/src/ring/middleware/multipart_params.clj
View
2 ring-core/src/ring/middleware/multipart_params.clj
@@ -49,7 +49,7 @@
(assoc-param param-map
(.getFieldName item)
(if (.isFormField item)
- (.getString item)
+ (if (.get item) (.getString item))
(file-map item))))
{}
(.parseRequest

0 comments on commit 358c701

Please sign in to comment.