incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1040819 - /sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
Date Tue, 30 Nov 2010 23:05:27 GMT
Author: mduerig
Date: Tue Nov 30 23:05:26 2010
New Revision: 1040819

URL: http://svn.apache.org/viewvc?rev=1040819&view=rev
Log:
SLING-1877: Scala scripting: NPE when scripting engine is used standalone 

Modified:
    sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala

Modified: sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala?rev=1040819&r1=1040818&r2=1040819&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
(original)
+++ sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
Tue Nov 30 23:05:26 2010
@@ -29,7 +29,7 @@ import scala.tools.nsc.reporters.Reporte
 abstract class AbstractSettingsProvider extends SettingsProvider {
   protected var settings: Settings = new Settings
   protected var reporter: Reporter = createReporter(settings)
-  protected var classpathX: Array[AbstractFile] = null
+  protected var classpathX: Array[AbstractFile] = Array.empty
 
   @throws(classOf[ScriptException])
   def setScalaSettings(settings: Settings): Boolean = {



Mime
View raw message