
|
If you were logged in you would be able to see more operations.
|
|
|
|
Issue Links:
|
Incorporate
|
|
This issue incorporates:
|
|
SAK-17231
unknown type sites created with Sites break the tool edition of the site
|
|
|
|
|
|
|
|
|
getTool can throw an NPE if a null toolid is passed, as in this strack trace originating from SiteAction:
It would be better to just return null and let the calling code handle it, especially as null is a valid return value if the tool is not found.
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
at org.sakaiproject.tool.impl.ToolComponent.getTool(ToolComponent.java:267)
at org.sakaiproject.tool.cover.ToolManager.getTool(ToolManager.java:93)
at org.sakaiproject.site.tool.SiteAction.isMultipleInstancesAllowed(SiteAction.java:5804)
at org.sakaiproject.site.tool.SiteAction.saveFeatures(SiteAction.java:8395)
at org.sakaiproject.site.tool.SiteAction.doSave_revised_features(SiteAction.java:5895)
... 47 more
|
|
Description
|
getTool can throw an NPE if a null toolid is passed, as in this strack trace originating from SiteAction:
It would be better to just return null and let the calling code handle it, especially as null is a valid return value if the tool is not found.
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
at org.sakaiproject.tool.impl.ToolComponent.getTool(ToolComponent.java:267)
at org.sakaiproject.tool.cover.ToolManager.getTool(ToolManager.java:93)
at org.sakaiproject.site.tool.SiteAction.isMultipleInstancesAllowed(SiteAction.java:5804)
at org.sakaiproject.site.tool.SiteAction.saveFeatures(SiteAction.java:8395)
at org.sakaiproject.site.tool.SiteAction.doSave_revised_features(SiteAction.java:5895)
... 47 more
|
Show » |
|