ASF Bugzilla – Attachment 29689 Details for
Bug 54242
NPE in tagPlugins:ForEach
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ForEach
ForEach.diff (text/plain), 809 bytes, created by
Sheldon Shao
on 2012-12-04 08:12:05 UTC
(
hide
)
Description:
Patch for ForEach
Filename:
MIME Type:
Creator:
Sheldon Shao
Created:
2012-12-04 08:12:05 UTC
Size:
809 bytes
patch
obsolete
>Index: apache/jasper/tagplugins/jstl/core/ForEach.java >=================================================================== >--- apache/jasper/tagplugins/jstl/core/ForEach.java (revision 1416791) >+++ apache/jasper/tagplugins/jstl/core/ForEach.java (working copy) >@@ -155,6 +155,10 @@ > ctxt.generateJavaSource("else if (" + itemsV + " instanceof Map)"); > ctxt.generateJavaSource(iterV + "=((Map)" + itemsV + ").entrySet().iterator();"); > >+ // null >+ ctxt.generateJavaSource("else if (" + itemsV + " == null)"); >+ ctxt.generateJavaSource(iterV + "= java.util.Collections.emptySet().iterator();"); >+ > if (hasBegin) { > String tV = ctxt.getTemporaryVariableName(); > ctxt.generateJavaSource("for (int " + tV + "=" + beginV + ";" +
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54242
:
29689
|
29709
|
29710
|
29711
|
29772