This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197708 - NPE in unit tests (WeakCache.putIfAbsent can return null)
Summary: NPE in unit tests (WeakCache.putIfAbsent can return null)
Status: RESOLVED DUPLICATE of bug 198257
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 14:48 UTC by Vladimir Kvashin
Modified: 2011-05-05 15:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-04-13 14:48:24 UTC
There are some NPEs in unit tests,
the top of the stack is

java.lang.NullPointerException
org.netbeans.modules.cnd.utils.cache.CndFileUtils.index(CndFileUtils.java:431)
org.netbeans.modules.cnd.utils.cache.CndFileUtils.getFlags(CndFileUtils.java:378)
org.netbeans.modules.cnd.utils.cache.CndFileUtils.isExistingFile(CndFileUtils.java:328)
org.netbeans.modules.cnd.apt.utils.APTIncludeUtils.isExistingFile(APTIncludeUtils.java:141)

which means that 
WeakCache.putIfAbsent
can return null

WeakCache and RemoteFileObjectFactory need to be refactored
Comment 1 Vladimir Kvashin 2011-05-05 15:33:34 UTC

*** This bug has been marked as a duplicate of bug 198257 ***