alibaba / alibaba/DataX

MongoDBWriter在未填写type的情况下,会导致空指针报错

Open
#988 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

如果type未填写,并且该字段值为null,则MongoDBWriter的第161行会报空针。

图片

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at MongoDBWriter line 161 and reproduce the case where type is omitted and the field value is null. Trace the null handling around that line, then verify that the same input no longer raises a NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.