[Title]modified for null pointer exception
authorsungmin82.ha <sungmin82.ha@samsung.com>
Mon, 6 Feb 2012 05:57:01 +0000 (14:57 +0900)
committersungmin82.ha <sungmin82.ha@samsung.com>
Mon, 6 Feb 2012 05:59:07 +0000 (14:59 +0900)
[Type]Bugfix
[Module]event injector
[Priority]Major
[Jira#] // Jira Issue Number
[Redmine#]  // Redmine Isuue Number
[Problem]  // Problem Description
[Cause]  // Cause Description
[Solution] // Solution Description
[TestCase]  // Executed the test-target (How to)

Change-Id: I79c872f32097e741e91e66ac042a866a20a1e536

com.samsung.tizen.injector/src/com/samsung/tizen/injector/socket/TelephonySocket.java

index 6ec44c6..9391c8b 100644 (file)
@@ -98,6 +98,8 @@ public class TelephonySocket {
                try {
                        socket.setKeepAlive(true);
                        currentDevice = ConnectionPlugin.getDefault().getCurrentDevice();
+                       if(currentDevice == null)
+                               return;
                        String str_localport = currentDevice.getSerialNumber();
                        port = Integer.parseInt(str_localport.substring(9, str_localport.length())) + 3;
                        socket.connect(new InetSocketAddress(ip, port), 1000);