Author: abelevich
Date: 2010-12-20 12:58:37 -0500 (Mon, 20 Dec 2010)
New Revision: 20698
Modified:
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
Log:
https://issues.jboss.org/browse/RF-10057
Modified: trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
===================================================================
---
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java 2010-12-20
17:06:02 UTC (rev 20697)
+++
trunk/ui/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java 2010-12-20
17:58:37 UTC (rev 20698)
@@ -33,7 +33,7 @@
Map<String, String> requestParamMap =
facesContext.getExternalContext().getRequestParameterMap();
String dragSourceId = (String) requestParamMap.get("dragSource");
- if(!"".equals(dragSourceId)) {
+ if(dragSourceId !=null && !"".equals(dragSourceId)) {
DragSourceContextCallBack dragSourceContextCallBack = new
DragSourceContextCallBack();
facesContext.getViewRoot().invokeOnComponent(facesContext, dragSourceId,
dragSourceContextCallBack);