Commit 5f43be70 authored by claes's avatar claes

Fixes to avoid exception

parent 2c75bc0d
/*
* Proview $Id: GeDyn.java,v 1.10 2007-01-30 06:51:17 claes Exp $
* Proview $Id: GeDyn.java,v 1.11 2007-05-23 08:05:19 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -193,7 +193,10 @@ public class GeDyn {
nix = 0;
else {
CdhrObjid cdhr_inst = en.gdh.nameToObjid( instance);
if ( cdhr_inst.oddSts())
nix = cdhr_inst.objid.vid;
else
nix = 0;
}
CdhrObjid cdhr_node = en.gdh.getNodeObject(nix);
if ( cdhr_node.evenSts()) return str;
......
/*
* Proview $Id: GeDynTable.java,v 1.6 2005-09-01 14:57:50 claes Exp $
* Proview $Id: GeDynTable.java,v 1.7 2007-05-23 08:05:19 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -234,6 +234,7 @@ public class GeDynTable extends GeDynElem {
else {
if ( typeId[i] == Pwr.eType_Float32) {
float[] value0 = dyn.en.gdh.getObjectRefInfoFloatArray( p[i], elements[i]);
if ( value0 != null) {
for ( int j = 0; j < value0.length; j++) {
if (j >= rows)
break;
......@@ -245,8 +246,10 @@ public class GeDynTable extends GeDynElem {
}
}
}
}
else if ( typeId[i] == Pwr.eType_Boolean) {
boolean[] value0 = dyn.en.gdh.getObjectRefInfoBooleanArray( p[i], elements[i]);
if ( value0 != null) {
for ( int j = 0; j < value0.length; j++) {
if (j >= rows)
break;
......@@ -260,6 +263,7 @@ public class GeDynTable extends GeDynElem {
}
}
}
}
else if ( typeId[i] == Pwr.eType_Int32 ||
typeId[i] == Pwr.eType_UInt32 ||
typeId[i] == Pwr.eType_Int16 ||
......@@ -267,6 +271,7 @@ public class GeDynTable extends GeDynElem {
typeId[i] == Pwr.eType_Int8 ||
typeId[i] == Pwr.eType_UInt8) {
int value0[] = dyn.en.gdh.getObjectRefInfoIntArray( p[i], elements[i]);
if ( value0 != null) {
for ( int j = 0; j < value0.length; j++) {
if (j >= rows)
break;
......@@ -278,11 +283,13 @@ public class GeDynTable extends GeDynElem {
}
}
}
}
else if ( typeId[i] == Pwr.eType_String ||
typeId[i] == Pwr.eType_Objid ||
typeId[i] == Pwr.eType_Time ||
typeId[i] == Pwr.eType_DeltaTime) {
String[] value0 = dyn.en.gdh.getObjectRefInfoStringArray( p[i], typeId[i], size[i], elements[i]);
if ( value0 != null) {
for ( int j = 0; j < value0.length; j++) {
if (j >= rows)
break;
......@@ -297,6 +304,7 @@ public class GeDynTable extends GeDynElem {
}
}
}
}
if ( firstScan)
firstScan = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment