App crashed

Open
#151 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java
Domain
desktop-dev

Research direction

Start by reproducing the startup crash with App 7.6 and capture the complete unfiltered stack trace. Follow the sorting call shown in the trace, especially the comparator used for Arrays.sort, and identify which compared value is null. Done means the application starts successfully and the null comparison is covered by a regression test.

Written by the indexing model from the issue text.

Description

Currently the application does not start.

Application error:

java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:220)
	at e1.e.applyAsLong(SourceFile:46)
	at java.util.Comparator.lambda$comparingLong$6043328a$1(Comparator.java:511)
	at java.util.Comparator$$ExternalSyntheticLambda4.compare(Unknown Source:2)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:360)
	at java.util.TimSort.sort(TimSort.java:220)
	at java.util.Arrays.sort(Arrays.java:1495)
	at java.util.concurrent.CopyOnWriteArrayList.sortRange(CopyOnWriteArrayList.java:900)
	at java.util.concurrent.CopyOnWriteArrayList.sort(CopyOnWriteArrayList.java:892)
	at T.e.x(SourceFile:198)
	at d1.a.a(SourceFile:169)
	at l1.a.run(SourceFile:27)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)

App: 7.6

Dominant language
Java
Stars
877
Forks
121
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SmartPack/PackageManager

All issues in SmartPack/PackageManager

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.