Skip to content
Browse files
Catch NullPointerException from JSoup when recording a test plan
Fix stupid bug, where I placed the declaration of the method
variable inside the try-catch block.

Bugzilla Id: 65864
  • Loading branch information
FSchumacher committed Feb 2, 2022
1 parent a1b170d commit 3a74a92b298b0d32cfc96a689c8fc95125201dde
Showing 1 changed file with 2 additions and 1 deletion.
@@ -52,8 +52,9 @@ public void addFormActionsAndCharSet(String html, Map<String, String> formEncodi
throws HTMLParseException {
log.debug("Parsing html of: {}", html);

Document document;
try {
Document document = Jsoup.parse(html);
document = Jsoup.parse(html);
} catch (RuntimeException e) {
throw new HTMLParseException("Could not parse HTML to look for forms charsets", e);

0 comments on commit 3a74a92

Please sign in to comment.