-
Notifications
You must be signed in to change notification settings - Fork 25
Fix #244 NullPointerException in new InitialContext() if IIOP endpoints are unreachable #245
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Takahiro Nagao <[email protected]>
For reference Lines 67 to 69 in c34aca8
null as well.
|
So are you suggesting that - return new ArrayList( internalClusterInstanceInfo() ) ;
+ List<ClusterInstanceInfo> internalInfo = internalClusterInstanceInfo();
+ return internalInfo == null ? null : new ArrayList<>(internalInfo); |
No, I'm not. I think your decision to return empty collection is the right one. What I meant is, that on GF side it was somehow anticipated that |
So this looks fine for me, but I'd like to check implementation(s) of And maybe |
orb/orbmain/src/main/java/com/sun/corba/ee/impl/folb/ClientGroupManager.java Lines 486 to 489 in 018a2b9
due to
|
Here are the lists for return values of relevant methods.
The current situation can be explained as follows:
I found that there is another method (No. 2-2) returning null in addition to |
Nice summary, thank you.
I do agree. And with that - for the changes in PR I think, which means I'm not quite sure (as I like empty collection being returned) - perhaps @dmatej could you check this, please? |
Fixes #244
This pull request addresses
NullPointerException
that occurs whennew InitialContext()
is called with unreachable IIOP endpoints.It adds null checks before creating
ArrayList
instances from the results ofinternalClusterInstanceInfo()
, preventing the exception when the returned collection is null.