flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject svn commit: r1417721 - /incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/
Date Thu, 06 Dec 2012 01:09:45 GMT
Author: fthomas
Date: Thu Dec  6 01:09:44 2012
New Revision: 1417721

URL: http://svn.apache.org/viewvc?rev=1417721&view=rev
Log:
- Fixed: NPE on activate logs

Modified:
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeProcessHelper.as

Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeProcessHelper.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeProcessHelper.as?rev=1417721&r1=1417720&r2=1417721&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeProcessHelper.as
(original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeProcessHelper.as
Thu Dec  6 01:09:44 2012
@@ -30,6 +30,7 @@ package org.apache.flex.utilities.develo
                 LOG = LogUtil.getLogger(NativeProcessHelper);
             if (!_gcLocker)
                 _gcLocker = new GCLocker();
+            _process = new NativeProcess();
         }
 
         public function get process():NativeProcess {
@@ -46,19 +47,16 @@ package org.apache.flex.utilities.develo
                 throw new Error("NativeProcessHelper is currently busy");
                 return;
             }
-            _process = new NativeProcess();
             _isRunning = true;
 
             //Avoid the garbage collection
             _gcLocker.lock(this);
 
             var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
-            var processArgs:Vector.<String> = new Vector.<String>();
 
             var file:File = File.applicationDirectory.resolvePath(command);
             nativeProcessStartupInfo.executable = file;
-            processArgs = args;
-            nativeProcessStartupInfo.arguments = processArgs;
+            nativeProcessStartupInfo.arguments = args;
 
             _process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, dispatch2, false,
0, true);
             _process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, dispatch2, false,
0, true);



Mime
View raw message