diff --git a/readme.md b/readme.md index eef26bf..77ba7a0 100644 --- a/readme.md +++ b/readme.md @@ -91,7 +91,7 @@ public class Test { connection = new MySQLConnection(mysql_creds); connection.connect(result -> { - if (result.getException().isEmpty()) { + if (result.getException().isPresent()) { result.getException().get().printStackTrace(); return; }