"Warning: Cannot read property '1' of null" if "Stable Version" omitted from readme.txt
Closed this issue · 1 comments
markjaquith commented
Stable Version:
is not required in a readme.txt file. Without it, trunk
is stable, and trunk/readme.txt
is the authoritative readme.
This warning happens because the code is trying to grab the version number from the readme Stable Tag, but if there is no Stable Tag line, the regex returns null
, and getting null[1]
fails.
I think that if readmeVersion
is null
, you should skip that whole readme version comparison section because it doesn't apply.
stephenharris commented
Thanks for reporting this and the PR. Will publish shortly.