ASF Bugzilla – Attachment 32358 Details for
Bug 57425
ReplicatedContext implementation throws NullPointerException for attributes with null value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't add orderedLibs attribute if it is null
0001-Don-t-add-orderedLibs-attribute-if-it-is-null.-Repli.patch (text/plain), 1.18 KB, created by
Felix Schumacher
on 2015-01-08 18:57:16 UTC
(
hide
)
Description:
Don't add orderedLibs attribute if it is null
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2015-01-08 18:57:16 UTC
Size:
1.18 KB
patch
obsolete
>From 504aa620943ae6fb10037784a4768d3750858b42 Mon Sep 17 00:00:00 2001 >From: Felix Schumacher <felix.schumacher@internetallee.de> >Date: Thu, 8 Jan 2015 19:51:32 +0100 >Subject: [PATCH] Don't add orderedLibs attribute, if it is null. > ReplicatedContext fails otherwise > >--- > java/org/apache/tomcat/util/descriptor/web/WebXml.java | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/java/org/apache/tomcat/util/descriptor/web/WebXml.java b/java/org/apache/tomcat/util/descriptor/web/WebXml.java >index 55bada9..fad2c18 100644 >--- a/java/org/apache/tomcat/util/descriptor/web/WebXml.java >+++ b/java/org/apache/tomcat/util/descriptor/web/WebXml.java >@@ -2270,8 +2270,10 @@ public class WebXml { > orderedJarFileNames.add(fragment.getJarName()); > } > } >- servletContext.setAttribute(ServletContext.ORDERED_LIBS, >- orderedJarFileNames); >+ if (orderedJarFileNames != null) { >+ servletContext.setAttribute(ServletContext.ORDERED_LIBS, >+ orderedJarFileNames); >+ } > } > > // The remainder of the processing needs to know about container >-- >1.9.1 >
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 57425
:
32358
|
32363