[Pkg-vala-maintainers] Bug#543249: Getting an item from a HashMap always results in NULL.

Julian Andres Klode jak at debian.org
Sun Aug 23 15:28:03 UTC 2009


Package: libgee1
Version: 0.3.0-1
Severity: important

If I use HashMap.get() in the Vala program, it returns null. The
attached Vala code can be used to reproduce the bug.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (350, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgee1 depends on:
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.20.4-1   The GLib library of C routines

libgee1 recommends no packages.

libgee1 suggests no packages.

-- no debconf information

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
-------------- next part --------------
/*
 * Copyright (C) 2009 Julian Andres Klode <jak at debian.org>
 *
 * Copying and distribution of this file, with or without modification,
 * are permitted in any medium without royalty provided the copyright
 * notice and this notice are preserved.
 *
 * Description:
 *  Map.get() always returns null.
 */

public void main() {
    Gee.HashMap<string,string> map = new Gee.HashMap<string,string>();
    string key = "Key";
    map[key] = "Value";
    // map[key] is null.
    stdout.printf("%s: %s\n", key, map[key]);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20090823/3d763b4a/attachment.pgp>


More information about the Pkg-vala-maintainers mailing list