Sentinel
Sentinel copied to clipboard
修复当FileRefreshableDataSource文件为空时读取异常
Describe what this PR does / why we need it
在使用FileRefreshableDataSource作为规则数据源时,发现如果初始化空规则文件会导致StringIndexOutOfBoundsException异常
Does this pull request fix one issue?
Describe how you did it
判断规则文件是否有数据
Describe how to verify it
加载空的规则文件看是否有异常打印
Special notes for reviews
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
郭佳俊 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
The CLA needs to be signed before the code is merged. :black_nib: