Skip to content

Fix project load crash when .gephi file has missing or empty name attribute - #3189

Merged
mbastian merged 1 commit into
masterfrom
fix/gephi-reader-null-project-name
May 9, 2026
Merged

mbastian merged 1 commit into
masterfrom
fix/gephi-reader-null-project-name

Conversation

@mbastian

@mbastian mbastian commented May 9, 2026

Copy link
Copy Markdown
Member

Fixes GEPHI-5QD (1 user affected).

GephiReader.readProject passed the name XML attribute directly to ProjectImpl, which enforces non-null/non-empty. Files with a missing or blank name attribute (older Gephi versions, externally edited files) crashed the load with IllegalArgumentException: Project name cannot be null or empty.

Fall back to "Untitled" when the attribute is missing or blank.

…ribute

Fall back to "Untitled" in GephiReader when the project name attribute
is null or blank, rather than passing an invalid value to ProjectImpl.

Fixes GEPHI-5QD
@mbastian mbastian added this to the 0.11.2 milestone May 9, 2026
@mbastian mbastian added the IO label May 9, 2026
@mbastian
mbastian merged commit 6211556 into master May 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant