Skip to main content
Visitor II
May 26, 2025
Question

Cannot invoke "String.startsWith(String)" because "prefix" is null

  • May 26, 2025
  • 2 replies
  • 418 views

I just updated my STM32 plugin in eclipse and now I cant compile anymore.

```

Errors occurred during the build.

Errors running builder 'CDT Builder' on project 'STMTest'.

Cannot invoke "String.startsWith(String)" because "prefix" is null

```

Always this error and in the log file too

2 replies

Pavel A.
Super User
May 26, 2025

I just updated my STM32 plugin in eclipse 

What is your STM32 plugin?  in which Eclipse? CubeIDE is a customized Eclipse version. Adding 3rd party plugins to it is possible (as long as it "works") - but can put you in unsupported situation.

 

TDK
Super User
May 26, 2025

Un-update it (i.e. roll back) or switch over to STM32CubeIDE.

Be wary when updating tools, especially unsupported ones, don't update unless there's a reason, and keep a fall-back plan.

"If you feel a post has answered your question, please click ""Accept as Solution""."