Skip to content

Fix NPE when saving assay protocol with transform scripts #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

labkey-tchad
Copy link
Member

Rationale

Trying to refactor a test to create an assay via API. The assay has a transform script, which caused an NPE when attempting to construct the response object.

java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" because "this._protocolTransformScripts" is null
	at org.labkey.remoteapi.assay.Protocol.<init>(Protocol.java:114)
	at org.labkey.remoteapi.assay.ProtocolResponse.<init>(ProtocolResponse.java:13)
	at org.labkey.remoteapi.assay.SaveProtocolCommand.createResponse(SaveProtocolCommand.java:19)
	at org.labkey.remoteapi.assay.SaveProtocolCommand.createResponse(SaveProtocolCommand.java:6)
	at org.labkey.remoteapi.Command.execute(Command.java:232)

Related Pull Requests

Changes

  • Fix NPE in Protocol constructor

@labkey-tchad labkey-tchad merged commit ce3d889 into develop Jul 5, 2022
@labkey-tchad labkey-tchad deleted the fb_assayXarExportTest branch July 5, 2022 17:21
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.

2 participants