eclipse-ee4j / glassfish-concurro

Eclipse Concurrō project
https://projects.eclipse.org/projects/ee4j.glassfish
Other
15 stars 19 forks source link

Possibility of NPE #47

Open emmartins opened 3 years ago

emmartins commented 3 years ago

https://github.com/eclipse-ee4j/glassfish-concurro/blob/ac7d098c0fab6849c9ed28b2b20c4a2580d2135a/src/main/java/org/glassfish/enterprise/concurrent/ManagedThreadFactoryImpl.java#L242

The task should first be copied to an in-method var. Same issue applies to getTaskIdentityName()