We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50de33e commit 3d8716eCopy full SHA for 3d8716e
1 file changed
src/main/java/org/htmlunit/html/HtmlTableCell.java
@@ -52,7 +52,12 @@ public int getColumnSpan() {
52
if (spanString == null || spanString.isEmpty()) {
53
return 1;
54
}
55
- return Integer.parseInt(spanString);
+ try {
56
+ return Integer.parseInt(spanString);
57
+ }
58
+ catch (final NumberFormatException e) {
59
+ return 1;
60
61
62
63
/**
@@ -64,7 +69,12 @@ public int getRowSpan() {
64
69
65
70
66
71
67
72
73
74
75
76
77
68
78
79
80
0 commit comments