You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Peter S (Jira)" <ji...@apache.org> on 2020/01/17 05:54:00 UTC
[jira] [Created] (NETBEANS-3705) TAB and RETURN/ENTER causes
NullPointerException and doesn't insert said whitespace character
Peter S created NETBEANS-3705:
---------------------------------
Summary: TAB and RETURN/ENTER causes NullPointerException and doesn't insert said whitespace character
Key: NETBEANS-3705
URL: https://issues.apache.org/jira/browse/NETBEANS-3705
Project: NetBeans
Issue Type: Bug
Components: editor - Lexer
Affects Versions: 11.2
Environment: Product Version = Apache NetBeans IDE 11.2
Operating System = Linux version 5.0.0-37-generic running on amd64
Java; VM; Vendor = 11.0.5; OpenJDK 64-Bit Server VM 11.0.5+10-post-Ubuntu-0ubuntu1.118.04; Private Build
Runtime = OpenJDK Runtime Environment 11.0.5+10-post-Ubuntu-0ubuntu1.118.04
Java Home = /usr/lib/jvm/java-11-openjdk-amd64
System Locale; Encoding = en_CA (nb); UTF-8
Reporter: Peter S
Attachments: nullPointerException.log
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.
h3. Symptoms
Loss of TAB and RETURN/ENTER key functionality.
h3. Cause
I've narrowed the problem down to this piece of PHP:
{code:java}
<?php
$pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%';
$str = '<img';
if (preg_match('%/(\d+)/0%', $str))
$k = '';
{code}
All other keyboard keys and commands seem to work, including copy and pasting line-breaks and tabs.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists