You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/04/01 20:50:38 UTC

svn commit: r761008 - /incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java

Author: gbrown
Date: Wed Apr  1 18:50:38 2009
New Revision: 761008

URL: http://svn.apache.org/viewvc?rev=761008&view=rev
Log:
Fix bug in ChartView that prevented provider from loading in applet sandbox.

Modified:
    incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java

Modified: incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java?rev=761008&r1=761007&r2=761008&view=diff
==============================================================================
--- incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java (original)
+++ incubator/pivot/trunk/charts/src/pivot/charts/ChartView.java Wed Apr  1 18:50:38 2009
@@ -381,8 +381,15 @@
     private static Provider provider = null;
 
     static {
-        // Load the chart provider; first look for a system property
-        String providerClassName = System.getProperty(PROVIDER_PROPERTY_NAME);
+        // Load the chart provider
+        String providerClassName = null;
+
+        // First look for a system property
+        try {
+            providerClassName = System.getProperty(PROVIDER_PROPERTY_NAME);
+        } catch(SecurityException exception) {
+            // No-op
+        }
 
         // Next look for a service descriptor on the classpath
         if (providerClassName == null) {