[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Error from my addressbook conduit - help!



On Tue, Aug 06, 2002 at 06:16:02PM +0000, Brian Johnson wrote:
> I have an addresbook conduit that gives the following errors:
> 
> Use of uninitialized value in bitwise and (&) at
> /usr/lib/perl5/site_perl/5.6.1/Palm/PDB.pm line 987.
> run_conduit: got status 301
> Use of uninitialized value in bitwise and (&) at
> /usr/lib/perl5/site_perl/5.6.1/Palm/Address.pm line 612.
> run_conduit: got status 301
> 
> 
> Line 987 of PDB.pm (version 1.19) is:
> $attributes = ($record->{category} & 0x0f);

> Line 612 of Address.pm (version 1.16) is:
>         $retval = pack("N",
>                 ($record->{phoneLabel}{phone1}    & 0x0f) |
>                 (($record->{phoneLabel}{phone2}   & 0x0f) <<  4) |
>                 (($record->{phoneLabel}{phone3}   & 0x0f) <<  8) |
>                 (($record->{phoneLabel}{phone4}   & 0x0f) << 12) |
>                 (($record->{phoneLabel}{phone5}   & 0x0f) << 16) |
>                 (($record->{phoneLabel}{display}  & 0x0f) << 20) |
>                 (($record->{phoneLabel}{reserved} & 0xff) << 24));

	Well, evidently $record->{category} and/or
$record->{phoneLabel} are undefined. How are you creating the record?
If you're reading it from a file, all of those should be defined. If
you're creating it from scratch, you should be using
$record = $pdb->append_Record in most cases.

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
	  If you give a man a fire, he'll be warm for a day.
  If you set a man on fire, he'll be warm for the rest of his life.

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.