Skip to content

Commit 2943683

Browse files
author
sabrinachen321
committed
fix a null pointer crash issue
1 parent 1041bfd commit 2943683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SerialPortLibrary/src/main/java/com/kongqw/serialportlibrary/thread/SerialPortReadThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void run() {
3131
try {
3232
Log.i(TAG, "run: ");
3333
while (mInputStream != null && mInputStream.available() == 0) {
34-
Log.i(TAG, "Input stream length is 0");
34+
// Do nothing
3535
}
3636
if (null == mInputStream) {
3737
return;

0 commit comments

Comments
 (0)