question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE in FileSystemInfo

See original GitHub issue

Bug report

What is the current behavior?

Null pointer error Error due to null object in FileSystemInfo.getContextTimestamp

If the current behavior is a bug, please provide the steps to reproduce.

Call FileSystemInfo.getContextTimestamp with an immutable path (immutable path prefixes are provided in FileSystemInfo constructor).

What is the expected behavior?

_readContextTimestamp (processor for contextTimestampQueue) returns null for immutable paths:

https://github.com/webpack/webpack/blob/bd7cb37f1c0d872cfff9fc27c7db52a25e1ba6a3/lib/FileSystemInfo.js#L3016-L3020

so the queue callback in getContextTimestamp should handle entry possibly being null: https://github.com/webpack/webpack/blob/bd7cb37f1c0d872cfff9fc27c7db52a25e1ba6a3/lib/FileSystemInfo.js#L1164-L1168

Other relevant information: webpack version: 5.51.0 Node.js version: all Operating System: all Additional tools: N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HitkoDevcommented, Aug 19, 2021

This looks like a recent webpack update. (use webpack as a transitive dependency in my Node project).

It appeared in 5.51.0, so just downgrade to 5.50.0 for now.

1reaction
alexander-akaitcommented, Aug 19, 2021

What is Null pointer? It is not Java

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileSystemInfo Class (System.IO) - Microsoft Learn
Provides the base class for both FileInfo and DirectoryInfo objects. In this article. Definition; Examples; Remarks; Constructors; Fields; Properties; Methods ...
Read more >
Java + XML | Accessing a specific Node from within a deep ...
and if I change "home/cyanite" to "bin" I get [NullPointerException] . For [home, cyanite, folder, folder, folder, bin, etc, usr] the issue ...
Read more >
OperatingSystemType (RHQ 4.12.0.JON330GA System API)
Returns an array containing the constants of this enum type, in the order they are declared. Methods inherited from class java.lang.Enum · clone,...
Read more >
CSMessageBundle_ro (Oracle Fusion Middleware Java API ...
Cause: A NullPointerException was thrown while parsing an XML file. * A possible cause for this is that the DTD file is missing...
Read more >
CHANGES.txt - Apache
validateParameters can throw NPE [HBASE-10089] - Metrics intern table names ... Rawson and Stack) HBASE-1342 Add to filesystem info needed to rebuild .META....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found