tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57425] ReplicatedContext implementation throws NullPointerException for attributes with null value
Date Thu, 08 Jan 2015 18:57:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57425

--- Comment #2 from Felix Schumacher <felix.schumacher@internetallee.de> ---
Created attachment 32358
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32358&action=edit
Don't add orderedLibs attribute if it is null

The attached patch is for tomcat 8. But the same logic would apply to tomcat 7.
The file in tomcat 7 is named java/org/apache/catalina/deploy/WebXml.java. It
applies cleanly for trunk.

The idea is to not store the attribute, if it is null, since getAttribute will
give a null value, if the attribute is not present and the replicated context
fails, if the concurrent hashmap gets a null as a value or a key.

If noone objects, I will apply the patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message