diff src/org/tn5250j/framework/tn5250/Screen5250.java @ 42:7ac846a07ed4 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 09:14:31 -0700
parents 9621ac4dd5eb
children 79aaf30947e2
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Tue Jun 10 17:40:09 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Wed Jun 11 09:14:31 2014 -0700
@@ -940,13 +940,9 @@
      *
      * @see #sendAid
      *
-     * Added synchronized to fix a StringOutOfBounds error - Luc Gorren LDC
      */
     public synchronized void sendKeys(String text) {
 
-        //      if (text == null) {
-        //         return;
-        //      }
         this.keybuf.append(text);
 
         if (isStatusErrorCode() && !resetRequired) {
@@ -970,11 +966,8 @@
 
                 oia.setKeysBuffered(true);
 
-                if (bufferedKeys == null) {
-                    bufferedKeys = text;
-                    return;
-                }
-                bufferedKeys += text;
+                if (bufferedKeys == null) bufferedKeys = text;
+                else                      bufferedKeys += text;
                 return;
             }