Skip to content

Conversation

@labkey-jeckels
Copy link
Contributor

Rationale

ERROR PepDBController          2025-04-02T03:40:54,317     http-nio-8111-exec-1 : PeptideTextExportAction: 
java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
	at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1769) ~[?:?]
	at java.base/java.util.regex.Matcher.reset(Matcher.java:415) ~[?:?]
	at java.base/java.util.regex.Matcher.<init>(Matcher.java:252) ~[?:?]
	at java.base/java.util.regex.Pattern.matcher(Pattern.java:1134) ~[?:?]
	at org.labkey.api.data.TSVWriter.setFilenamePrefix(TSVWriter.java:109) ~[api-25.4-SNAPSHOT.jar:?]
	at org.scharp.atlas.pepdb.PepDBController$PeptideTextExportAction.printText(PepDBController.java:925) [pepdb-25.4-SNAPSHOT.jar:?]
	at org.scharp.atlas.pepdb.PepDBController$PeptideDefaultTextExportAction.export(PepDBController.java:973) [pepdb-25.4-SNAPSHOT.jar:?]
	at org.labkey.api.action.ExportAction.getView(ExportAction.java:52) [api-25.4-SNAPSHOT.jar:?]
	at org.labkey.api.action.SimpleViewAction.handleRequest(SimpleViewAction.java:75) [api-25.4-SNAPSHOT.jar:?]

Changes

  • Use a default value for export filename
  • Simplify exception handling a little more

Copy link
Contributor

@labkey-adam labkey-adam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@labkey-jeckels labkey-jeckels merged commit 02ed67a into develop Apr 2, 2025
4 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_fixPepDbNpe branch April 2, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants