What are the possible reasons File.getAbsolutePath () returns null?

I ran into an error that is apparently caused by the File.getAbsolutePath()return null. What conditions can cause this? (Windows XP is running on an exception observing system.)

javadoc provides a brief description of the path resolution procedure, but does not mention the situation that would lead to the path nullreturned.

+3
source share
2 answers

The obvious, I suppose, is when a file is not created or does not exist

0
source

Tracing through API classes, the answer should be in Win32FileSystem.resolve(File)(see in the file src.zip)

/ , File, .

0

Source: https://habr.com/ru/post/1773938/


All Articles