db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baser...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata FieldDescriptor.java
Date Thu, 08 May 2003 14:56:29 GMT
baserose    2003/05/08 07:56:29

  Modified:    src/java/org/apache/ojb/broker/metadata FieldDescriptor.java
  Log:
  prevent NPEs
  
  Revision  Changes    Path
  1.26      +6 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/FieldDescriptor.java
  
  Index: FieldDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/FieldDescriptor.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- FieldDescriptor.java	21 Apr 2003 07:55:57 -0000	1.25
  +++ FieldDescriptor.java	8 May 2003 14:56:29 -0000	1.26
  @@ -487,6 +487,11 @@
   
       public void setAccess(String access)
       {
  +        if(access == null)
  +        {
  +            access = ACCESS_READWRITE;
  +        }
  +        
           if(ACCESS_ANONYMOUS.equals(access) ||
                   ACCESS_READONLY.equals(access) ||
                   ACCESS_READWRITE.equals(access))
  
  
  

Mime
View raw message