Author: nbelaevski
Date: 2009-08-27 12:08:52 -0400 (Thu, 27 Aug 2009)
New Revision: 15352
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
Log:
Fixed potential NPE in RendererBase
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-08-27
15:45:42 UTC (rev 15351)
+++
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-08-27
16:08:52 UTC (rev 15352)
@@ -90,7 +90,7 @@
if (null != behaviorEvent) {
List<ClientBehavior> behaviorsForEvent =
behaviors.get(behaviorEvent);
- if (behaviors.size() > 0) {
+ if (behaviors != null && behaviors.size() > 0) {
String behaviorSource =
params.get("javax.faces.source");
String clientId = component.getClientId();
if (null != behaviorSource &&
behaviorSource.equals(clientId)) {