tn5250j/src/org/tn5250j Session5250.java,1.4,1.5

"Kenneth J. Pouncey" <[email protected]> Mon, 02 Aug 2004 17:33:18 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19369/src/org/tn5250j

Modified Files:
	Session5250.java 
Log Message:
Fix a null pointer exception when isConnected is called and the VT had not been initialized yet

Index: Session5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Session5250.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Session5250.java	1 Aug 2004 14:38:06 -0000	1.4
--- Session5250.java	2 Aug 2004 17:33:16 -0000	1.5
***************
*** 72,76 ****
        screen = new Screen5250();
  
!       screen.setVT(vt);
  
     }
--- 72,76 ----
        screen = new Screen5250();
  
!       //screen.setVT(vt);
  
     }
***************
*** 93,97 ****
     public boolean isConnected() {
  
!       return vt.isConnected();
  
     }
--- 93,100 ----
     public boolean isConnected() {
  
!       if (vt == null)
!          return false;
!       else
!          return vt.isConnected();
  
     }



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com