<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -171,9 +171,12 @@ function f:FRIENDLIST_UPDATE(event)
 
 	for i=1,GetNumFriends() do
 		local name, _, _, _, _, _, note = GetFriendInfo(i)
-		name = string.lower(name)
-		if db.notes[name] and db.notes[name] ~= note then SetFriendNotes(name, db.notes[name])
-		elseif note ~= &quot;&quot; then db.notes[name] = note end
+		if not name then Print(&quot;Server returned invalid friend data&quot;)
+		else
+			name = string.lower(name)
+			if db.notes[name] and db.notes[name] ~= note then SetFriendNotes(name, db.notes[name])
+			elseif note ~= &quot;&quot; then db.notes[name] = note end
+		end
 	end
 
 	if hasannounced then Print(&quot;Update completed.&quot;) end</diff>
      <filename>FriendsWithBenefits.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>048f9c428ebf6d089dac548fe8682547477c87c2</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/friendswithbenefits/commit/1cac9561844df6dccd93ada0f3786a12cb5d52f8</url>
  <id>1cac9561844df6dccd93ada0f3786a12cb5d52f8</id>
  <committed-date>2009-03-01T14:42:21-08:00</committed-date>
  <authored-date>2009-03-01T14:42:21-08:00</authored-date>
  <message>Give a warning instead of throwing an error when the server return empty friend info</message>
  <tree>23cb96473f95af643f6ded4079b9f345a73a723c</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
