[pal-cvs 3510] [1244] fixed npe when downloading.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 27日 (月) 10:52:57 JST


Revision: 1244
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=1244
Author:   shinsuke
Date:     2008-10-27 10:52:57 +0900 (Mon, 27 Oct 2008)

Log Message:
-----------
fixed npe when downloading.

Modified Paths:
--------------
    vfs-portlets/trunk/src/main/java/jp/sf/pal/vfs/action/ListAction.java


-------------- next part --------------
Modified: vfs-portlets/trunk/src/main/java/jp/sf/pal/vfs/action/ListAction.java
===================================================================
--- vfs-portlets/trunk/src/main/java/jp/sf/pal/vfs/action/ListAction.java	2008-10-27 01:51:56 UTC (rev 1243)
+++ vfs-portlets/trunk/src/main/java/jp/sf/pal/vfs/action/ListAction.java	2008-10-27 01:52:57 UTC (rev 1244)
@@ -181,8 +181,10 @@
             throw new ActionMessagesException("errors.invalid_user");
         }
 
-        if (!VFSUtil.checkPath(listForm.scope, listForm.uri,
-                createPathParamMap())) {
+        Map<String, String> pathParamMap = createPathParamMap();
+        pathParamMap.put(VFSConstants.PATH_PARAM_USERNAME, username);
+
+        if (!VFSUtil.checkPath(listForm.scope, listForm.uri, pathParamMap)) {
             // i18n
             throw new ActionMessagesException("errors.access_denied");
         }


pal-cvs メーリングリストの案内
Back to archive index