array A_nextFree610 integer A_firstFree171 integer A_maxIndex697 array A_typeId206 integer wurst_stack_depth103 array wurst_stack187 integer A_firstFree171 = 0 integer A_maxIndex697 = 0 integer wurst_stack_depth103 = 0 function initGlobals117() { } function main197() { initGlobals117(); init_test292("when calling init_test in genericsNull, line 1"); } function config123() { } function init_test292(string __wurst_stackPos178) { local integer this105 wurst_stack_187[wurst_stack_depth_103] = __wurst_stackPos_178; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); this_105 = new_A765("when calling new_A in genericsNull, line 9"); wurst_stack_187[wurst_stack_depth_103] = "when calling foo in genericsNull, line 9"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (A_typeId_206[this_105] == 0) { if (this_105 == 0) { error139("Nullpointer exception when calling A.foo", "when calling error in genericsNull, line 3"); } else { error139("Called A.foo on invalid object.", "when calling error in genericsNull, line 3"); }; } else { }; wurst_stack_depth_103 = ((wurst_stack_depth_103 - 1) - 1); } function new_A765(string __wurst_stackPos199) returns integer { local integer this110 wurst_stack_187[wurst_stack_depth_103] = __wurst_stackPos_199; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); wurst_stack_187[wurst_stack_depth_103] = "when calling alloc_A in genericsNull, line 2"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (A_firstFree_171 == 0) { if (A_maxIndex_697 < 32768) { A_maxIndex_697 = (A_maxIndex_697 + 1); this_110 = A_maxIndex_697; A_typeId_206[this_110] = 1; } else { error139("Out of memory: Could not create A.", "when calling error in genericsNull, line 2"); this_110 = 0; }; } else { A_firstFree_171 = (A_firstFree_171 - 1); this_110 = A_nextFree_610[A_firstFree_171]; A_typeId_206[this_110] = 1; }; wurst_stack_depth_103 = ((wurst_stack_depth_103 - 1) - 1); return this_110; } function error139(string msg108, string __wurst_stackPos100) { local integer stacktraceIndex918 local integer stacktraceLimit123 wurst_stack_187[wurst_stack_depth_103] = __wurst_stackPos_100; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); __wurst_stackPos_100 = ""; stacktraceIndex_918 = wurst_stack_depth_103; stacktraceLimit_123 = 0; loop { stacktraceIndex_918 = (stacktraceIndex_918 - 1); stacktraceLimit_123 = (stacktraceLimit_123 + 1); exitwhen ((stacktraceLimit_123 > 20) or (stacktraceIndex_918 < 0)); __wurst_stackPos_100 = (__wurst_stackPos_100 + (" " + wurst_stack_187[stacktraceIndex_918])); }; $debugPrint530((msg_108 + (" " + __wurst_stackPos_100))); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); }