[Java] Dummy NPEs in DefaultAllocationManagerOption
- Lenguaje dominante
- Java
- Estrellas
- 94
- Forks
- 152
- Merge medio
- 3 d 16 h
- PR fusionados (30 d)
- 11
Descripción
Looking at DefaultAllocationManagerOption [1], I see that we could prevent dummy NPEs when trying to convert an often not-set environment option into enums.
In my case, it was a bit painful to have this error, even if properly caught, because it was polluting debug when looking for unexpected NPEs. This was raising false positives.
I was wondering if you were open to a pull request to change this little inconvenience?
[1]
**Reporter**: [Olivier Peyrusse](https://issues.apache.org/jira/browse/ARROW-13697)
**Note**: *This issue was originally created as [ARROW-13697](https://issues.apache.org/jira/browse/ARROW-13697). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Guía de contribución
Línea de trabajo
Comienza leyendo java/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java alrededor de las líneas 64-82, centrándote en la conversión de las opciones de entorno no establecidas a enums. Confirma el comportamiento actual para una opción no establecida y verifica que el tratamiento resultante ya no produzca NullPointerExceptions ficticias, preservando al mismo tiempo el comportamiento esperado de la opción.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100