Avoid NPE.
Merge branch 'rxtx-read-issue'

* rxtx-read-issue:
  Avoid NPE.
Another NPE to avoid.
Merge branch 'rxtx-read-issue'

* rxtx-read-issue:
  Another NPE to avoid.