Heewon Lee

Results 8 issues of Heewon Lee

The current implementation of [`Context.getCommandContext()`](https://github.com/Activiti/Activiti/blob/develop/activiti-core/activiti-engine/src/main/java/org/activiti/engine/impl/context/Context.java#L46), `null` is returned if `commandContextThreadLocal` has an empty stack. While this is fair when only considering this method, in the broader context, the propagation of...

In the current implementation, it is possible to set the `nanStrategy` and `tiesStrategy` of `NaturalRanking` to `null`, even though they will inevitably throw NPEs upon any calls to `rank` or...

## Description This PR intends to provide `null` guards in the `TsFileExecutor`'s constructors. The inputs to the constructor of `TsFileExecutor` are immediately saved to the executor's private properties, which cannot...

In the current implementation of the `createInvoke` method, an NPE is thrown if the `argTypes` array is `null`. This commit adds a null guard that skips the for loop if...

MapConfiguration has a `protected` property `map`, which is provided upon instantiation and cannot be changed later. The lack of `null` guards for this property leads to inevitable NPEs at an...

如果`JsonInjector.get`函数中`refer`的值为`null`,则会导致 `NPE` 发生在变量更改之后。 这使得查看错误消息并确认错误是否由`refer`的值引起变得困难。 本次 PR 修改为在变量更改之前直接触发错误,以便返回更有利于进一步调试的信息。

## Description (Copied from [Apache IoTDB PR#12013](https://github.com/apache/iotdb/pull/12013).) This PR intends to provide `null` guards in the `TsFileExecutor`'s constructors. The inputs to the constructor of `TsFileExecutor` are immediately saved to the...

When `null` is passed to the `DateConverter` constructor, NullPointerException will eventually be thrown. However, since the constructor is lazily evaluated, this is not thrown until much later, leading to difficult...