Skip to content

Commit a59b3d8

Browse files
committed
Activate send button only in connected state
1 parent 0cd9c67 commit a59b3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netcat/src/main/java/com/github/dddpaul/netcat/ui/ResultFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private void disconnect()
237237

238238
private void updateUIWithValidation()
239239
{
240-
if( Utils.isActive( netCat ) ) {
240+
if( netCat != null && netCat.isConnected() ) {
241241
sendButton.setEnabled( Utils.populated( inputText ) );
242242
} else {
243243
sendButton.setEnabled( false );

0 commit comments

Comments
 (0)