/
How to fix NullPointerException

How to fix NullPointerException


Product Name

CIS-CAT Pro Assessor v4

Product Version

All

Date

May 3, 2023



Problem

I am unable to perform a Linux assessment. CIS-CAT crashes with a java NullPointerException, right after starting an assessment.

Exception in thread "main" java.lang.NullPointerException: Cannot invoke method tokenize() on null object

Solution

Eject/unmount any disks before you start. We most frequently see this occur if the host system has a physical or virtual CD/DVD mounted that includes spaces in the mount path (such as a VMWare Tools ISO, or an OS installation disc), or from unsupported special characters in file system paths (which may be valid for the filesystem itself, but can cause issues when parsed by CIS-CAT Pro Assessor).

The screenshot below shows that an ISO installation disk is still mounted on the target system using the /usr/bin/df -TP command:

Once it’s ejected, the scan will complete:

To check your mounted media, run /usr/bin/df -TP

Keywords; Ubuntu Linux VM NullPointerException

Content by Label


Copyright © 2023

Center for Internet Security®


 

Related content

List of CIS Microsoft Windows Benchmarks
List of CIS Microsoft Windows Benchmarks
Read with this
Java Error when Executing CIS-CAT Pro Assessor v4: "An Illegal Reflective Access Operation has Occurred"
Java Error when Executing CIS-CAT Pro Assessor v4: "An Illegal Reflective Access Operation has Occurred"
More like this
Certain Fedora 28 based Linux 8 Benchmarks show potential false passes or false failures when running CIS-CAT Pro Assessor v4.x.x+
Certain Fedora 28 based Linux 8 Benchmarks show potential false passes or false failures when running CIS-CAT Pro Assessor v4.x.x+
Read with this
I am getting an error when I try and use the CIS-CAT Pro Assessor download for Linux with embedded Java
I am getting an error when I try and use the CIS-CAT Pro Assessor download for Linux with embedded Java
More like this
Scans Do Not Complete with the GUI vs the CLI (or vice versa)
Scans Do Not Complete with the GUI vs the CLI (or vice versa)
More like this