Skip to content
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

Refactoring of the project as part of a computer science course #310

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

anya-x
Copy link

@anya-x anya-x commented Mar 16, 2021

Pull Request

Changes proposed in this pull request:

  • refactoring of the class BaseRTMPTConnection

@anya-x anya-x changed the title refactoring of BaseRTMPTConnection class Refactoring of BaseRTMPTConnection class Mar 16, 2021
@anya-x anya-x closed this Mar 16, 2021
@anya-x anya-x reopened this Mar 16, 2021
@anya-x anya-x changed the title Refactoring of BaseRTMPTConnection class Refactoring of the project as part of a computer science course Apr 12, 2021
@@ -319,7 +318,7 @@ public IScopeHandler lookupScopeHandler(String contextPath) {
String scopeHandlerName = getMappingStrategy().mapScopeHandlerName(contextPath);
// Get bean from bean factory
Object bean = applicationContext.getBean(scopeHandlerName);
if (bean != null && bean instanceof IScopeHandler) {
if (bean instanceof IScopeHandler) {
Copy link
Member

Choose a reason for hiding this comment

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

Ensure that getBean cannot return a null

Copy link
Member

@mondain mondain left a comment

Choose a reason for hiding this comment

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

Looks good, other than the one possible NPE

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