Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3705

TAB and RETURN/ENTER causes NullPointerException and doesn't insert said whitespace character

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.2
    • None
    • editor - Lexer
    • None

    Description

      So this one was a bit fun to narrow down.  I thought it was the keyboard at first, then maybe read-only file, but other files work and restarting didn't solve the problem.

      Symptoms

      Loss of TAB and RETURN/ENTER key functionality.

      Cause

      I've narrowed the problem down to this piece of PHP:

      <?php
      
      $pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%';
      
      $str = '<img';
      
      if (preg_match('%/(\d+)/0%', $str))
          $k = '';
      
      

      Removing any of the above lines seem to solve the problem.

       

      All other keyboard keys and commands seem to work, including copy and pasting line-breaks and tabs.

       

      Attachments

        1. nullPointerException.log
          55 kB
          Peter S

        Activity

          People

            Unassigned Unassigned
            sarke Peter S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: