Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

PLF-6687 intranet site name embedded in source code #115

Merged
merged 2 commits into from Feb 20, 2017
Merged

PLF-6687 intranet site name embedded in source code #115

merged 2 commits into from Feb 20, 2017

Conversation

nttuyen
Copy link
Contributor

@nttuyen nttuyen commented Feb 14, 2017

No description provided.

PortalRequestContext pContext = null;
try {
pContext = Util.getPortalRequestContext();
} catch (NullPointerException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can Util.getPortalRequestContext() throw a NullPointerException ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, in case we are not in WebUI context, it throws NPE

@@ -213,7 +217,22 @@ public static String getCurrentDomain() {
//
return sysDomain;
}


public static SiteKey getCurrentSite() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments on this method and unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@thomasdelhomenie thomasdelhomenie merged commit 0424a16 into exoplatform:develop Feb 20, 2017
@thomasdelhomenie thomasdelhomenie deleted the fix/4.4.x/PLF-6687 branch February 20, 2017 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants