summaryrefslogtreecommitdiff
path: root/desktop/source/registration/com/sun/star
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2010-01-14 09:49:20 +0000
committerRelease Engineers <releng@openoffice.org>2010-01-14 09:49:20 +0000
commit51d8da865527e217bca900f9022f849323f50427 (patch)
treeae82d75f364067baceeb704342f4c802aed7e920 /desktop/source/registration/com/sun/star
parent549e13cfc0a2ba551f9d8ac6b9d21045d16c734f (diff)
#i108263# fix for registration windows
Diffstat (limited to 'desktop/source/registration/com/sun/star')
-rw-r--r--desktop/source/registration/com/sun/star/servicetag/WindowsSystemEnvironment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/registration/com/sun/star/servicetag/WindowsSystemEnvironment.java b/desktop/source/registration/com/sun/star/servicetag/WindowsSystemEnvironment.java
index ec391d8270..483369a72a 100644
--- a/desktop/source/registration/com/sun/star/servicetag/WindowsSystemEnvironment.java
+++ b/desktop/source/registration/com/sun/star/servicetag/WindowsSystemEnvironment.java
@@ -125,7 +125,9 @@ class WindowsSystemEnvironment extends SystemEnvironment {
private String getWindowsPhysMem() {
String mem = getWmicResult("computersystem", "get", "TotalPhysicalMemory");
- long l = Long.parseLong(mem);
+ long l = 0;
+ if (mem.length()>0)
+ Long.parseLong(mem);
return "" + ((long) (l / (1024*1024)));
}