< prev index next >

src/java.naming/share/classes/com/sun/jndi/ldap/LdapReferralException.java

Print this page

        

*** 215,233 **** if (debug) System.out.println("LdapReferralException.setReferralInfo"); this.referrals = referrals; ! if (referrals != null) { ! referralCount = referrals.size(); ! } if (debug) { for (int i = 0; i < referralCount; i++) { System.out.println(" [" + i + "] " + referrals.elementAt(i)); } } } /** * Gets the next referral. When the current set of referrals have * been exhausted then the next referral exception is thrown, if available. --- 215,235 ---- if (debug) System.out.println("LdapReferralException.setReferralInfo"); this.referrals = referrals; ! referralCount = (referrals == null) ? 0 : referrals.size(); if (debug) { + if (referrals != null) { for (int i = 0; i < referralCount; i++) { System.out.println(" [" + i + "] " + referrals.elementAt(i)); } + } else { + System.out.println("setReferralInfo : referrals == null"); } + } } /** * Gets the next referral. When the current set of referrals have * been exhausted then the next referral exception is thrown, if available.
< prev index next >