Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'getTokens' of null while adding empty code block
Open, Needs TriagePublic

Description

Steps to replicate:

  1. Open Code block dialog using NWE/VE
  2. Pick a language.
  3. Now just enable the checkbox for show line numbers and specify a starting line number but keep the code part empty.
  4. Click on Insert (Maybe we shouldn't enable the Insert button when its empty?)

The following error appears "Uncaught TypeError: Cannot read property 'getTokens' of null"