Author: deepal
Date: Mon Jan 14 02:18:34 2008
New Revision: 12207
Log:
need to check whether the user is null
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/dao/VersionedResourceDAO.java
Mon Jan 14 02:18:34 2008
@@ -910,7 +910,9 @@
throws SQLException {
Resource oldArtifact = getResourceByID(resourceId, toVersion,
connection);
- oldArtifact.setLastUpdaterUserName(User.getCurrentUser());
+ if (User.getCurrentUser() != null) {
+ oldArtifact.setLastUpdaterUserName(User.getCurrentUser());
+ }
String plainPath = oldArtifact.getPath();
if (oldArtifact.getPath().indexOf("?v=") != -1) {
String[] parts = oldArtifact.getPath().split("\\?v=");
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev