ndt-dev - [ndt-dev] [ndt] r900 committed - Check getNDTServer return value before using it.
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r900 committed - Check getNDTServer return value before using it.
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r900 committed - Check getNDTServer return value before using it.
- Date: Tue, 11 Feb 2014 18:58:15 +0000
Revision: 900
Author:
Date: Tue Feb 11 18:58:06 2014 UTC
Log: Check getNDTServer return value before using it.
http://code.google.com/p/ndt/source/detail?r=900
Modified:
/branches/Issue111/flash-client/src/NDTUtils.as
=======================================
--- /branches/Issue111/flash-client/src/NDTUtils.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/Issue111/flash-client/src/NDTUtils.as Tue Feb 11 18:58:06 2014 UTC
@@ -84,12 +84,16 @@
}
try {
- Main.server_hostname = ExternalInterface.call("getNDTServer");
- TestResults.appendDebugMsg(
+ var js_server_hostname:String = ExternalInterface.call("getNDTServer");
+ if (js_server_hostname) {
+ Main.server_hostname = js_server_hostname;
+ TestResults.appendDebugMsg(
"Initialized server from JavaScript. Server hostname:"
+ Main.server_hostname);
+ }
} catch(e:Error) {
- Main.server_hostname = NDTConstants.SERVER_HOSTNAME;
+ TestResults.appendDebugMsg("Bad Flash permissions: No "
+ + "access to javascript.");
}
}
- [ndt-dev] [ndt] r900 committed - Check getNDTServer return value before using it., ndt, 02/11/2014
Archive powered by MHonArc 2.6.16.