You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/01 03:32:00 UTC
[jira] [Commented] (KYLIN-3836) Kylin StringUtil.join() may cause
NPE if iterator is empty
[ https://issues.apache.org/jira/browse/KYLIN-3836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16781240#comment-16781240 ]
ASF subversion and git services commented on KYLIN-3836:
--------------------------------------------------------
Commit e4459d5b93906f63bcde0e0d3d97efe2d9bfa899 in kylin's branch refs/heads/2.6.x from chao long
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=e4459d5 ]
KYLIN-3836 fix Kylin StringUtil.join() may cause NPE if iterator is empty
> Kylin StringUtil.join() may cause NPE if iterator is empty
> ----------------------------------------------------------
>
> Key: KYLIN-3836
> URL: https://issues.apache.org/jira/browse/KYLIN-3836
> Project: Kylin
> Issue Type: Bug
> Reporter: Chao Long
> Assignee: Chao Long
> Priority: Major
> Fix For: v2.6.1
>
>
> {code}
> public static String join(Iterable<String> parts, String separator) {
> StringBuilder buf = new StringBuilder();
> Iterator<String> iterator = parts.iterator();
> if (iterator == null || (!iterator.hasNext())) {
> return null;
> }
> {code}
> org.apache.kylin.job.exception.ExecuteException: org.apache.kylin.job.exception.ExecuteException: java.lang.NullPointerException
> at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:183)
> at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:114)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.kylin.job.exception.ExecuteException: java.lang.NullPointerException
> at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:183)
> at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:71)
> at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:168)
> ... 4 more
> Caused by: java.lang.NullPointerException
> at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
> at com.google.common.base.Splitter.split(Splitter.java:383)
> at org.apache.kylin.common.util.StringUtil.splitAndTrim(StringUtil.java:181)
> at org.apache.kylin.source.hive.GarbageCollectionStep.getIntermediateTables(GarbageCollectionStep.java:95)
> at org.apache.kylin.source.hive.GarbageCollectionStep.cleanUpIntermediateFlatTable(GarbageCollectionStep.java:62)
> at org.apache.kylin.source.hive.GarbageCollectionStep.doWork(GarbageCollectionStep.java:48)
> at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:168)
> ... 6 more
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)