[wpkg-users] wpkgCreateReport
Falko Trojahn
nospam_ft at smi-softmark.de
Thu Sep 10 14:02:18 CEST 2009
Hi,
>
> New bugfixing release of wpkgCreateReport can be found at:
>
> http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm
>
>
>
at first: thanx for this nice work.
But, for some of my PCs, I get a
S:\install\wpkg\report\createReport.js(881, 7) Laufzeitfehler in
Microsoft JScript: 'null' ist Null oder kein Objekt
and/or same with (1746,7).
The following patch clears the problem for me, perhaps it
is not enough for all cases - but you get an idea.
If you need the files or more information from me, drop me a line.
Best regards,
Falko
diff -u org/createReport.js createReport.js
--- org/createReport.js 2009-09-05 18:24:54.000000000 +0200
+++ createReport.js 2009-09-10 13:54:28.000000000 +0200
@@ -878,6 +878,14 @@
var valB;
var length;
+ if (a == null)
+ {
+ return 2;
+ }
+ if (b == null)
+ {
+ return 3;
+ }
a = a.split(".");
b = b.split(".");
length = Math.max(a.length, b.length);
@@ -1742,7 +1750,8 @@
var i;
var ch;
var result;
-
+ if (str == null) return result;
+
str = str.replace(/\&/g, "&");
// ampersands (&)
str = str.replace(/\</g, "<");
// less-thans (<)
str = str.replace(/\>/g, ">");
// greater-thans (>)
More information about the wpkg-users
mailing list