Skip to content
Snippets Groups Projects
Commit 89ce1303 authored by buczekp's avatar buczekp
Browse files

[LMS-870] bugfix

SVN: 11057
parent 6b77cffc
No related merge requests found
...@@ -81,7 +81,7 @@ public final class MaterialBO extends AbstractBusinessObject implements IMateria ...@@ -81,7 +81,7 @@ public final class MaterialBO extends AbstractBusinessObject implements IMateria
String[] connections = String[] connections =
{ PROPERTY_TYPES, VOCABULARY_TERMS }; { PROPERTY_TYPES, VOCABULARY_TERMS };
final MaterialPE result = getMaterialDAO().tryGetByTechId(materialId, connections); final MaterialPE result = getMaterialDAO().tryGetByTechId(materialId, connections);
if (material == null) if (result == null)
{ {
throw new UserFailureException(String.format("Material with ID '%s' does not exist.", throw new UserFailureException(String.format("Material with ID '%s' does not exist.",
materialId)); materialId));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment