#3 missing null check

open
None
5
2003-04-13
2003-04-12
Anonymous
No

Hey there!

Had a look at your souceforge project and had to alter
line 141 in
JavaComm_IO_Serial to the version below get it working.

=> while (portList.hasMoreElements() && portId==null) {

Because if you want COM1 and there are are ports in the
enum after it, the
vars (portId and commport) are set to null again...

Am I right with this? Hope so...

Regards,

J. Völker

Discussion

  • Anonymous - 2003-04-13
    • assigned_to: nobody --> tfosa
     
  • Alexandre Rusev

    Alexandre Rusev - 2003-04-14

    Logged In: YES
    user_id=513379

    It seams that you are quite right, I'll introduce the
    changes you offered now!
    Unfortunetly I do not have enough time to perform a good
    testing of the result
    and revision of this part of the program.
    I hope that you'll make me know in case of some negative
    effects of such changes.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks