Skip to content

Code Template fails with NullPointer #4819

@atehrani

Description

@atehrani

Apache NetBeans version

Apache NetBeans 15

What happened

When I try to use code templates using keywords, for example sout which should automatically expand to System.out.println() it fails with a NPE.
messages.log

How to reproduce

Use sout and see the NPE. This occurs when using this plugin https://funfried.github.io/externalcodeformatter_for_netbeans/

Did this work correctly in an earlier version?

Apache NetBeans 14

Operating System

Mac OS X version 12.6 running on x86_64

JDK

19.0.1; OpenJDK 64-Bit Server VM 19.0.1+10-FR; Amazon.com Inc.

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions