JVM crash when calling setDescription or setNodeDescription

The engine.
Post Reply
ronnie
Posts: 7
Joined: Wed Jan 20, 2010 10:39 am
Location: Skövde, Sweden
Contact:

JVM crash when calling setDescription or setNodeDescription

Post by ronnie »

Bug report:
When I call either of the setDescription or setNodeDescription methods in a Network instance with null as argument in JSmile, the JVM crashes with the following message:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d8fde5c, pid=36860, tid=30768
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode windows-x86 )
# Problematic frame:
# V [jvm.dll+0xfde5c]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#



E.g.:

public class jsmile_test {
public static void main( String args[]) {
Network net = new smile.Network();
net.setDescription( null ); // <- JVM havoc
}
}

I can easily avoid the crash by not calling the methods with null, but preferably the JVM should not crash (rather an Exception should be thrown).
Post Reply