ASF Bugzilla – Attachment 27671 Details for
Bug 50898
IncludeController : NullPointerException loading script in non-GUI mode if Includers use same element name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix to issue
BUG_50898.patch (text/plain), 1.06 KB, created by
Philippe Mouawad
on 2011-10-02 07:01:01 UTC
(
hide
)
Description:
Fix to issue
Filename:
MIME Type:
Creator:
Philippe Mouawad
Created:
2011-10-02 07:01:01 UTC
Size:
1.06 KB
patch
obsolete
>Index: src/jorphan/org/apache/jorphan/collections/HashTree.java >=================================================================== >--- src/jorphan/org/apache/jorphan/collections/HashTree.java (revision 1178103) >+++ src/jorphan/org/apache/jorphan/collections/HashTree.java (working copy) >@@ -979,10 +979,12 @@ > if (list().size() == 0) { > visitor.processPath(); > } else { >- Iterator<?> iter = list().iterator(); >- while (iter.hasNext()) { >- Object item = iter.next(); >- final HashTree treeItem = getTree(item); >+ Set<Map.Entry<Object, HashTree>> entrySet = data.entrySet(); >+ for (Iterator<Map.Entry<Object, HashTree>> iterator = entrySet.iterator(); iterator.hasNext();) { >+ Entry<Object, HashTree> entry = iterator >+ .next(); >+ Object item = entry.getKey(); >+ final HashTree treeItem = entry.getValue(); > visitor.addNode(item, treeItem); > treeItem.traverseInto(visitor); > }
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 50898
:
27664
|
27665
|
27666
|
27671
|
27673
|
27674
|
27675
|
27676