Is 'null' ever valid syntax?

2010-06-04 Thread Felix Knecht
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I suppose this is either always true or false, right? if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) ) http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.html#916

Re: Is 'null' ever valid syntax?

2010-06-04 Thread Emmanuel Lecharny
On 6/4/10 4:10 PM, Felix Knecht wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I suppose this is either always true or false, right? No. It depends on the AttributeType. Some accept null values, some don't. This is the reason we have such a test. -- Regards, Cordialement, Emmanuel

Re: Is 'null' ever valid syntax?

2010-06-04 Thread Stefan Seelmann
Felix Knecht wrote: I suppose this is either always true or false, right? if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) ) http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.html#916 No. For example the

Re: Is 'null' ever valid syntax?

2010-06-04 Thread Felix Knecht
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/10 16:32, Stefan Seelmann wrote: Felix Knecht wrote: I suppose this is either always true or false, right? if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) )

Re: Is 'null' ever valid syntax?

2010-06-04 Thread Emmanuel Lecharny
On 6/4/10 4:37 PM, Felix Knecht wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/10 16:32, Stefan Seelmann wrote: Felix Knecht wrote: I suppose this is either always true or false, right? if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) )