Skip to content

Error java.lang.NullPointerException #340

Description

@alexi3

Describe the bug
Angry IP Scanner shows:

Error
java.lang.NullPointerException

Fatal Error
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)

and exits after klicking OK.

To Reproduce
LAN and WLAN is down, ip-a shows:

mint@mint:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff

Start Angry IP Scanner.

Expected behavior
It would be better to use loopback IP 127.0.0.1 if available, otherwise to show an error message "no IP available".

Screenshots
image

Versions (please copy from the About dialog or complete manually):
OS: Linux Mint 20.2 x86_64
CPU Architecture: 64 bit
CPU: AMD A6-9225 RADEON R4 2C+3G (2)
mint@mint:~$ uname -a
Linux mint 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Angry IP Scanner
Version: 3.8.2
Build date: 2022-01-22

Java: Ubuntu 11.0.13+8-Ubuntu-0ubuntu1.20.04
OS: Linux 5.4.0-74-generic (amd64)
SWT: gtk 4948

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions