Index: tools/dom/scripts/htmldartgenerator.py |
diff --git a/tools/dom/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py |
index 89e3c3a7a283590744f89bd60a927482d0827755..007f3f5bd0665e9e233f8de41434e7002a419f48 100644 |
--- a/tools/dom/scripts/htmldartgenerator.py |
+++ b/tools/dom/scripts/htmldartgenerator.py |
@@ -420,7 +420,7 @@ class HtmlDartGenerator(object): |
else: |
checks.append('(%s is %s)' % ( |
parameter_name, test_type)) |
- elif i >= number_of_required_in_dart: |
+ elif i >= number_of_required_in_dart and not argument.type.nullable: |
checks.append('%s != null' % parameter_name) |
# There can be multiple presence checks. We need them all since a later |