Bug 81428  - JDI code requires use of optional timeout argument
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java
index a8e8ea7..9aa49e9 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java
@@ -82,7 +82,12 @@
 		 	// Note that timeout is not used in SUN's ListeningConnector, but is used by our
 		 	// LaunchingConnector.
 		 	attribute = "timeout"; //$NON-NLS-1$
-		 	fTimeout = ((Connector.IntegerArgument)connectionArgs.get(attribute)).intValue();
+             IntegerArgument argument = (IntegerArgument) connectionArgs.get(attribute);
+             if (argument != null) {
+                 fTimeout = argument.intValue();
+             } else {
+                 fTimeout = 0;
+             }
 		} catch (ClassCastException e) {
 			throw new IllegalConnectorArgumentsException(ConnectMessages.getString("SocketListeningConnectorImpl.Connection_argument_is_not_of_the_right_type_6"), attribute); //$NON-NLS-1$
 		} catch (NullPointerException e) {