Melco: No files showing when start task

Description

java.lang.NullPointerException
at java.base/java.nio.file.Files.provider(Files.java:105)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:608)
at com.jthink.songkong.fileloader.FileFilters.getAudioFilesInFolder(FileFilters.java:19)
at com.jthink.songkong.ui.startdialog.editsongs.EditSongsHelper.getNextFolder(EditSongsHelper.java:35)
at com.jthink.songkong.server.page.EditSongsPage.createPage(EditSongsPage.java:155)
at com.jthink.songkong.server.CmdRemote.lambda$configureWebEndPoints$101(CmdRemote.java:232)
at spark.RouteImpl$1.handle(RouteImpl.java:72)
at spark.http.matching.Routes.execute(Routes.java:61)
at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130)
at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.base/java.lang.Thread.run(Thread.java:832)

Activity

Show:
IJabz
November 13, 2020, 5:15 PM

Occurs if folder is null, not quite sure how this actually happens but we have moved error detection to start of page creation so no NullPointerException is thrown.

Fixed

Reporter

IJabz

Labels

None

Forum Username

jcoates

os

None

Components

Fix versions

Affects versions

Priority

Major
Configure