Author: julien_viet
Date: 2009-12-17 19:21:32 -0500 (Thu, 17 Dec 2009)
New Revision: 1054
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PreferencesTask.java
Log:
fix minor bug
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PreferencesTask.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PreferencesTask.java 2009-12-17
23:27:05 UTC (rev 1053)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PreferencesTask.java 2009-12-18
00:21:32 UTC (rev 1054)
@@ -33,7 +33,7 @@
{
/** . */
- private static final Object NULL_PREFS = new Object();
+// private static final Object NULL_PREFS = new Object();
public static class GetContentId<S> extends PreferencesTask<S> implements
POMTask<String>
{
@@ -86,8 +86,7 @@
public S run(POMSession session) throws Exception
{
Customization<S> customization =
(Customization<S>)session.findCustomizationById(storageId);
- S prefs = customization.getVirtualState();
- return prefs == null ? (S)NULL_PREFS : prefs;
+ return customization.getVirtualState();
}
@Override