openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1441372 - /openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
Date Fri, 01 Feb 2013 10:14:30 GMT
Author: hdu
Date: Fri Feb  1 10:14:29 2013
New Revision: 1441372

URL: http://svn.apache.org/viewvc?rev=1441372&view=rev
Log:
fix null-pointer check in sunjavaplugin

Modified:
    openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx

Modified: openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx?rev=1441372&r1=1441371&r2=1441372&view=diff
==============================================================================
--- openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx (original)
+++ openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx Fri Feb  1 10:14:29
2013
@@ -267,7 +267,7 @@ javaPluginError jfw_plugin_getAllJavaInf
             }
         }
         
-        if (arExcludeList > 0)
+        if( arExcludeList != NULL)
         {
             bool bExclude = false;
             for (int j = 0; j < nLenList; j++)
@@ -397,7 +397,7 @@ javaPluginError jfw_plugin_getJavaInfoBy
             return JFW_PLUGIN_E_FAILED_VERSION;
     }
     
-    if (arExcludeList > 0)
+    if( arExcludeList != NULL)
     {
         for (int i = 0; i < nLenList; i++)
         {



Mime
View raw message