Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](chinese) fix null Pointer exception errors #186

Closed
wants to merge 1 commit into from

Conversation

zzzxl1993
Copy link
Collaborator

No description provided.

@@ -53,6 +53,8 @@ class ChineseTokenizer : public lucene::analysis::Tokenizer {
std::string buffer_;
std::vector<std::string_view> tokens_text;

cppjieba::Jieba* jieba_ = nullptr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const is better

@zzzxl1993 zzzxl1993 closed this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants