Skip to content

Commit

Permalink
NullPointerException in TaskManagementService.getTaskData in case tas…
Browse files Browse the repository at this point in the history
…k is not found
  • Loading branch information
ruslan-transferwise committed Nov 16, 2023
1 parent c931098 commit b4fe6b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.40.6 - 2023/11/16
### Fixed

* NullPointerException in TaskManagementService.getTaskData in case task is not found

#### 1.40.5 - 2023/10/30
### Added
- Setting METADATA_MAX_AGE_CONFIG to two minutes for producer
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.40.5
version=1.40.6
org.gradle.internal.http.socketTimeout=120000
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ public GetTaskDataResponse getTaskData(GetTaskDataRequest request) {
GetTaskDataResponse response = new GetTaskDataResponse();

final FullTaskRecord task = taskDao.getTask(taskId, FullTaskRecord.class);
mdcService.put(task);
if (task == null) {
response.setResultCode(ResultCode.NOT_FOUND);
} else {
mdcService.put(task);
response.setVersion(task.getVersion());
response.setType(task.getType());

Expand Down

0 comments on commit b4fe6b2

Please sign in to comment.