You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Patrick Grandjean (Jira)" <ji...@apache.org> on 2023/03/03 15:18:00 UTC
[jira] [Created] (HDFS-16941) Path.suffix raises NullPointerException
Patrick Grandjean created HDFS-16941:
----------------------------------------
Summary: Path.suffix raises NullPointerException
Key: HDFS-16941
URL: https://issues.apache.org/jira/browse/HDFS-16941
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Patrick Grandjean
Calling the Path.suffix method on root raises a NullPointerException. Tested with Hadoop 3.3.
Scenario:
{code:java}
import org.apache.hadoop.fs.*
Path root = new Path("/")
root.getParent == null // true
root.suffix("bar") // NPE is raised
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org