portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r379706 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
Date Wed, 22 Feb 2006 06:19:02 GMT
Author: taylor
Date: Tue Feb 21 22:19:02 2006
New Revision: 379706

URL: http://svn.apache.org/viewcvs?rev=379706&view=rev
Log:
add support for disabled Statistics component

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java?rev=379706&r1=379705&r2=379706&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
Tue Feb 21 22:19:02 2006
@@ -132,7 +132,8 @@
             if (fragment.getType().equals(ContentFragment.PORTLET))
             {
                 long end = System.currentTimeMillis();            
-                statistics.logPortletAccess(requestContext, fragment.getName(), PortalStatistics.HTTP_OK,
end - start);
+                if (statistics != null)
+                    statistics.logPortletAccess(requestContext, fragment.getName(), PortalStatistics.HTTP_OK,
end - start);
             }
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message