Skip to content

[BUG] Possible crash due to missing smarthighlighter nullptr check #17086

@Ekopalypse

Description

@Ekopalypse

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

When SmartHighlighting is used, in a rather rare case, a nullptr may be returned, which causes Npp to crash.
See for more detailed information.

Steps To Reproduce

See

Current Behavior

Npp crashes

Expected Behavior

does not crash

Debug Information

Notepad++ v8.8.6   (64-bit)
Build time: Oct 18 2025 - 19:16:18
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Path: D:\Repositories\eko\notepad-plus-plus\PowerEditor\visual.net\x64\Debug\Notepad++.exe
Command Line: -nosession -multiInst
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
Periodic Backup: OFF
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: ON
Display Info:
    primary monitor: 1920x1080, scaling 100%
    visible monitors count: 2
    installed Display Class adapters: 
        0000: Description - AMD Radeon(TM) Graphics
        0000: DriverVersion - 32.0.21025.10016
OS Name: Windows 11 Pro (64-bit)
OS Version: 24H2
OS Build: 26100.6899
Current ANSI codepage: 1252
Plugins:

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugcrashissue causing N++ to crash

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions